[][src]Enum block_utils::Filesystem

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>,
    },
}

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

Methods

impl Filesystem[src]

pub fn new(name: &str) -> Filesystem[src]

Trait Implementations

impl Debug for Filesystem[src]

Auto Trait Implementations

impl Send for Filesystem

impl Sync for Filesystem

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]