Module for managing ext2/3/4 file systems
salt.modules.extfs.
attributes
(device, args=None)¶Return attributes from dumpe2fs for a specified device
CLI Example:
salt '*' extfs.attributes /dev/sda1
salt.modules.extfs.
blocks
(device, args=None)¶Return block and inode info from dumpe2fs for a specified device
CLI Example:
salt '*' extfs.blocks /dev/sda1
salt.modules.extfs.
dump
(device, args=None)¶Return all contents of dumpe2fs for a specified device
CLI Example:
salt '*' extfs.dump /dev/sda1
salt.modules.extfs.
mkfs
(device, fs_type, **kwargs)¶Create a file system on the specified device
CLI Example:
salt '*' extfs.mkfs /dev/sda1 fs_type=ext4 opts='acl,noexec'
Valid options are:
See the mke2fs(8)
manpage for a more complete description of these
options.
salt.modules.extfs.
tune
(device, **kwargs)¶Set attributes for the specified device (using tune2fs)
CLI Example:
salt '*' extfs.tune /dev/sda1 force=True label=wildstallyns opts='acl,noexec'
Valid options are:
See the mke2fs(8)
manpage for a more complete description of these
options.