Enum block_utils::Filesystem[][src]

pub enum Filesystem {
    Btrfs {
        leaf_size: u64,
        metadata_profile: MetadataProfile,
        node_size: u64,
    },
    Ext4 {
        inode_size: u64,
        reserved_blocks_percentage: u8,
        stride: Option<u64>,
        stripe_width: Option<u64>,
    },
    Xfs {
        block_size: Option<u64>,
        force: bool,
        inode_size: Option<u64>,
        stripe_size: Option<u64>,
        stripe_width: Option<u64>,
        agcount: Option<u64>,
    },
    Zfs {
        block_size: Option<u64>,
        compression: Option<bool>,
    },
}
Expand description

This allows you to tweak some settings when you’re formatting the filesystem

Variants

Btrfs

Fields of Btrfs

leaf_size: u64metadata_profile: MetadataProfilenode_size: u64
Ext4

Fields of Ext4

inode_size: u64reserved_blocks_percentage: u8stride: Option<u64>stripe_width: Option<u64>
Xfs

Fields of Xfs

block_size: Option<u64>

This is optional. Boost knobs are on by default: http://xfs.org/index.php/XFS_FAQ#Q:I_want_to_tune_my_XFS_filesystems for_.3Csomething.3E

force: boolinode_size: Option<u64>stripe_size: Option<u64>stripe_width: Option<u64>agcount: Option<u64>
Zfs

Fields of Zfs

block_size: Option<u64>

The default blocksize for volumes is 8 Kbytes. An power of 2 from 512 bytes to 128 Kbytes is valid.

compression: Option<bool>

Enable compression on the volume. Default is fals

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.