pub struct InodeItem {Show 16 fields
pub generation: u64,
pub transid: u64,
pub size: u64,
pub nbytes: u64,
pub block_group: u64,
pub nlink: u32,
pub uid: u32,
pub gid: u32,
pub mode: u32,
pub rdev: u64,
pub flags: InodeFlags,
pub sequence: u64,
pub atime: Timespec,
pub ctime: Timespec,
pub mtime: Timespec,
pub otime: Timespec,
}Expand description
Inode metadata, stored as INODE_ITEM in the FS tree.
Contains POSIX attributes (uid, gid, mode, timestamps) plus btrfs-specific fields (flags, sequence number, block group hint).
Fields§
§generation: u64Generation when this inode was created.
transid: u64Transaction ID of the last modification.
size: u64Logical file size in bytes.
nbytes: u64Total on-disk bytes used (including all copies for RAID).
block_group: u64Block group hint for new allocations.
nlink: u32Hard link count.
uid: u32Owner user ID.
gid: u32Owner group ID.
mode: u32POSIX file mode (type + permissions).
rdev: u64Device number (for character/block device inodes).
flags: InodeFlagsInode flags (NODATASUM, COMPRESS, etc.).
sequence: u64NFS-compatible change sequence number.
atime: TimespecLast access time.
ctime: TimespecLast change time (inode metadata).
mtime: TimespecLast modification time (file data).
otime: TimespecCreation time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InodeItem
impl RefUnwindSafe for InodeItem
impl Send for InodeItem
impl Sync for InodeItem
impl Unpin for InodeItem
impl UnsafeUnpin for InodeItem
impl UnwindSafe for InodeItem
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