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

leaf_size: u64
metadata_profile: MetadataProfile
node_size: u64

Ext4

Fields

inode_size: u64
reserved_blocks_percentage: u8
stride: Option<u64>
stripe_width: Option<u64>

Xfs

Fields

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: bool
inode_size: Option<u64>
stripe_size: Option<u64>
stripe_width: Option<u64>
agcount: Option<u64>

Zfs

Fields

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.