Skip to main content

ext4_mkfs_info

Struct ext4_mkfs_info 

Source
#[repr(C)]
pub struct ext4_mkfs_info {
Show 15 fields pub len: u64, pub block_size: u32, pub blocks_per_group: u32, pub inodes_per_group: u32, pub inode_size: u32, pub inodes: u32, pub journal_blocks: u32, pub feat_ro_compat: u32, pub feat_compat: u32, pub feat_incompat: u32, pub bg_desc_reserve_blocks: u32, pub dsc_size: u16, pub uuid: [u8; 16], pub journal: bool, pub label: *const c_char,
}
Expand description

mkfs configuration info

Fields§

§len: u64

Total length in bytes

§block_size: u32

Block size in bytes

§blocks_per_group: u32

Blocks per group

§inodes_per_group: u32

Inodes per group

§inode_size: u32

Inode size

§inodes: u32

Total inodes

§journal_blocks: u32

Journal blocks

§feat_ro_compat: u32

Read-only compatible features

§feat_compat: u32

Compatible features

§feat_incompat: u32

Incompatible features

§bg_desc_reserve_blocks: u32

Block group descriptor reserve blocks

§dsc_size: u16

Descriptor size

§uuid: [u8; 16]

UUID (128-bit)

§journal: bool

Enable journal

§label: *const c_char

Volume label

Trait Implementations§

Source§

impl Default for ext4_mkfs_info

Source§

fn default() -> Self

Returns the “default value” for a type. 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.