Struct JournalSb
Source #[repr(C, packed(1))]
pub struct JournalSb {
pub magic: [u8; 8],
pub commited: u64,
pub tx_id: u64,
_pad: [u8; 4072],
}
Expand description
Represents the on-disk metadata for the journal superblock.
Journal magic: “KeOSJOUR”.
Indicate journal has been commited.
Padding to fill a full block (4096 bytes).
Loads the journal superblock from disk.
§Arguments
disk: The underlying disk interface.
lba: The logical block address where the journal superblock is
located.
§Returns
Ok(Box<Self>): A parsed journal superblock.
Err(KernelError): If the block could not be read or parsed.
Writes the current journal superblock to disk.
This updates the on-disk metadata for the journal ring buffer.
§Arguments
io: The I/O interface to the journal.
ffs: Reference to the file system’s metadata layout.
§Returns
Ok(()): If the write succeeds.
Err(KernelError): If the write fails.
Returns the “default value” for a type.
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.