#[repr(C, packed(1))]pub struct InodeArray {
inodes: [Inode; 16],
}Expand description
Represents a fixed-size array of inodes loaded from a block.
Each InodeArray holds a collection of Inode structures that are
packed into a single 4KB block. The number of inodes it contains is computed
based on the size of the Inode type.
Fields§
§inodes: [Inode; 16]Trait Implementations§
Source§impl Default for InodeArray
impl Default for InodeArray
Source§fn default() -> InodeArray
fn default() -> InodeArray
Returns the “default value” for a type. Read more
Source§impl Deref for InodeArray
impl Deref for InodeArray
Source§impl DerefMut for InodeArray
impl DerefMut for InodeArray
Source§impl MetaData for InodeArray
impl MetaData for InodeArray
Source§fn load(
ffs: &FastFileSystemInner,
lba: LogicalBlockAddress,
) -> Result<BlockPointsTo<Self>, KernelError>
fn load( ffs: &FastFileSystemInner, lba: LogicalBlockAddress, ) -> Result<BlockPointsTo<Self>, KernelError>
Loads a metadata structure from disk at the specified logical block
address. Read more
Auto Trait Implementations§
impl Freeze for InodeArray
impl RefUnwindSafe for InodeArray
impl Send for InodeArray
impl Sync for InodeArray
impl Unpin for InodeArray
impl UnwindSafe for InodeArray
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more