pub struct ExtentVerifyCtx<'a> {
pub ino: u32,
pub generation: u32,
pub csum: &'a Checksummer,
}Expand description
Context for verifying extent-block tail checksums during a tree walk.
Pass Some(&ctx) to lookup_verified / map_logical_verified /
collect_all_verified when reading a real on-disk extent tree under
a metadata_csum filesystem. Each off-inode block’s
ext4_extent_tail.et_checksum is verified against
crc32c(seed, ino_le, gen_le, block[..len-4]).
Pass None to skip verification (tests, callers without a Filesystem).
Fields§
§ino: u32Inode number that owns this extent tree.
generation: u32Inode generation field (salts the per-inode CRC).
csum: &'a ChecksummerMount-wide checksummer (skipped when csum.enabled == false).
Trait Implementations§
Source§impl<'a> Clone for ExtentVerifyCtx<'a>
impl<'a> Clone for ExtentVerifyCtx<'a>
impl<'a> Copy for ExtentVerifyCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtentVerifyCtx<'a>
impl<'a> RefUnwindSafe for ExtentVerifyCtx<'a>
impl<'a> Send for ExtentVerifyCtx<'a>
impl<'a> Sync for ExtentVerifyCtx<'a>
impl<'a> Unpin for ExtentVerifyCtx<'a>
impl<'a> UnsafeUnpin for ExtentVerifyCtx<'a>
impl<'a> UnwindSafe for ExtentVerifyCtx<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more