pub struct InodeRef {
pub parent: u64,
pub index: u64,
pub name: String,
}Expand description
One name an inode is known by, and the directory holding it.
A btrfs inode with nlink > 1 has one of these per link. This is the
back-reference the filesystem stores deliberately, so the answer is a direct
read rather than a directory walk.
Fields§
§parent: u64Objectid of the directory containing this name (the item key’s offset).
index: u64The directory index this name occupies within parent.
name: StringThe name itself.
Trait Implementations§
impl Eq for InodeRef
impl StructuralPartialEq for InodeRef
Auto Trait Implementations§
impl Forget for InodeRef
impl Freeze for InodeRef
impl RefUnwindSafe for InodeRef
impl Send for InodeRef
impl Sync for InodeRef
impl Unpin for InodeRef
impl UnsafeUnpin for InodeRef
impl UnwindSafe for InodeRef
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