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
Ext4
Xfs
Fields
Zfs
Implementations§
Source§impl Filesystem
impl Filesystem
pub fn new(name: &str) -> Filesystem
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filesystem
impl RefUnwindSafe for Filesystem
impl Send for Filesystem
impl Sync for Filesystem
impl Unpin for Filesystem
impl UnwindSafe for Filesystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more