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: u32The magic number of the superblock.
blocksize_bits: u8The size of a block in powers of 2 (i.e., for a value of n, the size is 2^n.
maxbytes: i64Maximum size of a file.
time_gran: u32Granularity of c/m/atime in ns (cannot be worse than a second).
Implementations
sourceimpl SuperParams
impl SuperParams
sourcepub const DEFAULT: Self = Self {
magic: 0,
blocksize_bits: crate::PAGE_SIZE as _,
maxbytes: bindings::MAX_LFS_FILESIZE,
time_gran: 1,
}
pub const DEFAULT: Self = Self { magic: 0, blocksize_bits: crate::PAGE_SIZE as _, maxbytes: bindings::MAX_LFS_FILESIZE, time_gran: 1, }
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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