pub struct SuperParams {
    pub magic: u32,
    pub blocksize_bits: u8,
    pub maxbytes: i64,
    pub time_gran: u32,
}
Expand description

Required superblock parameters.

This is used in NewSuperBlock::init.

Fields

magic: u32

The magic number of the superblock.

blocksize_bits: u8

The size of a block in powers of 2 (i.e., for a value of n, the size is 2^n.

maxbytes: i64

Maximum size of a file.

time_gran: u32

Granularity of c/m/atime in ns (cannot be worse than a second).

Implementations

Default value for instances of SuperParams.

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.