pub struct VfAttrs {Show 21 fields
pub file: FileOperand,
pub masks: AttrMask,
pub returned: AttrMask,
pub ftype: VfType,
pub mode: u32,
pub size: u64,
pub nlink: u32,
pub fileid: u64,
pub fs_id: u128,
pub change: u64,
pub uid: u32,
pub gid: u32,
pub rdev: u64,
pub blocks: u64,
pub mtime_sec: i64,
pub mtime_nsec: u32,
pub atime_sec: i64,
pub atime_nsec: u32,
pub ctime_sec: i64,
pub ctime_nsec: u32,
pub has_named_attr: bool,
}Expand description
File attributes, mirroring struct tc_attrs. mode is the full st_mode
(permission bits plus S_IFMT file-type bits); the mtime/atime/ctime
fields hold seconds and nanoseconds.
Fields§
§file: FileOperand§masks: AttrMaskRequested attributes for a get/set call; also which attributes the caller cares about.
returned: AttrMaskWhich requested attributes were actually returned (populated by
getattrsv / lgetattrsv). A field is only meaningful when its bit is
set here; masks alone cannot distinguish “not requested” from
“requested but not returned” from “returned as zero”.
ftype: VfType§mode: u32§size: u64§nlink: u32§fileid: u64§fs_id: u128Opaque identity for the containing filesystem. Compare together with
fileid, and only within the backend’s identity namespace. This is not
a mount ID or the special-file device number stored in rdev.
change: u64Backend file-version token. NFS supplies FATTR4_CHANGE; other
backends leave this absent by not setting AttrMask::CHANGE in
returned.
uid: u32§gid: u32§rdev: u64§blocks: u64§mtime_sec: i64§mtime_nsec: u32§atime_sec: i64§atime_nsec: u32§ctime_sec: i64§ctime_nsec: u32§has_named_attr: boolFATTR4_NAMED_ATTR: TRUE iff the object has a non-empty named
attribute directory (i.e. at least one user.* xattr).