pub struct InodeLocation {
pub agno: u64,
pub agino: u64,
pub agblock: u64,
pub offset: u64,
pub fsblock: u64,
pub byte_offset: u64,
}Expand description
The decoded location of an inode: its allocation group, in-AG coordinates, absolute filesystem block, and absolute byte position in the image.
Produced by Superblock::inode_to_location; every field mirrors the
corresponding xfs_db convert inode N <field> output.
Fields§
§agno: u64Allocation-group number (ino >> (agblklog + inopblog)).
agino: u64AG-relative inode number (ino & ((1 << (agblklog + inopblog)) - 1)).
agblock: u64AG-relative block holding the inode (agino >> inopblog).
offset: u64Inode slot within its block (agino & ((1 << inopblog) - 1)).
fsblock: u64Absolute filesystem block (agno * agblocks + agblock).
byte_offset: u64Absolute byte position in the image
(fsblock * blocksize + offset * inodesize).
Trait Implementations§
Source§impl Clone for InodeLocation
impl Clone for InodeLocation
impl Copy for InodeLocation
Source§impl Debug for InodeLocation
impl Debug for InodeLocation
impl Eq for InodeLocation
Source§impl PartialEq for InodeLocation
impl PartialEq for InodeLocation
impl StructuralPartialEq for InodeLocation
Auto Trait Implementations§
impl Freeze for InodeLocation
impl RefUnwindSafe for InodeLocation
impl Send for InodeLocation
impl Sync for InodeLocation
impl Unpin for InodeLocation
impl UnsafeUnpin for InodeLocation
impl UnwindSafe for InodeLocation
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