salt.states.btrfs module

maintainer

Alberto Planas <aplanas@suse.com>

maturity

new

depends

None

platform

Linux

salt.states.btrfs.subvolume_created(name, device, qgroupids=None, set_default=False, copy_on_write=True, force_set_default=True, __dest=None)

Makes sure that a btrfs subvolume is present.

name

Name of the subvolume to add

device

Device where to create the subvolume

qgroupids

Add the newly created subcolume to a qgroup. This parameter is a list

set_default

If True, this new subvolume will be set as default when mounted, unless subvol option in mount is used

copy_on_write

If false, set the subvolume with chattr +C

force_set_default

If false and the subvolume is already present, it will not force it as default if set_default is True

salt.states.btrfs.subvolume_deleted(name, device, commit=False, __dest=None)

Makes sure that a btrfs subvolume is removed.

name

Name of the subvolume to remove

device

Device where to remove the subvolume

commit

Wait until the transaction is over