Struct kernel::fs::SuperParams
source · [−]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
sourceimpl SuperParams
impl SuperParams
sourcepub const DEFAULT: Self = _
pub const DEFAULT: Self = _
Default value for instances of SuperParams
.
Auto Trait Implementations
impl RefUnwindSafe for SuperParams
impl Send for SuperParams
impl Sync for SuperParams
impl Unpin for SuperParams
impl UnwindSafe for SuperParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more