Filesystem

Enum Filesystem 

Source
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§

Source§

impl Debug for Filesystem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.