pub struct SubvolumeListItem {
pub root_id: u64,
pub parent_id: u64,
pub dir_id: u64,
pub generation: u64,
pub flags: SubvolumeFlags,
pub uuid: Uuid,
pub parent_uuid: Uuid,
pub received_uuid: Uuid,
pub otransid: u64,
pub otime: SystemTime,
pub name: String,
}Expand description
A single subvolume entry returned by subvolume_list.
Fields§
§root_id: u64Root ID (subvolume ID).
parent_id: u64Root ID of the parent subvolume (0 if unknown / not found).
dir_id: u64Inode of the directory in the parent that contains this subvolume.
generation: u64Current generation.
flags: SubvolumeFlagsSubvolume flags.
uuid: UuidUUID of this subvolume.
parent_uuid: UuidUUID of the parent subvolume.
received_uuid: UuidUUID of the received subvolume.
otransid: u64Transaction ID when created.
otime: SystemTimeCreation time.
name: StringSubvolume name (the leaf name within its parent).
Full path resolution relative to the filesystem root requires
BTRFS_IOC_INO_LOOKUP and is not yet implemented; this field contains
only the leaf name as stored in the root backref item.
Trait Implementations§
Source§impl Clone for SubvolumeListItem
impl Clone for SubvolumeListItem
Source§fn clone(&self) -> SubvolumeListItem
fn clone(&self) -> SubvolumeListItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubvolumeListItem
impl RefUnwindSafe for SubvolumeListItem
impl Send for SubvolumeListItem
impl Sync for SubvolumeListItem
impl Unpin for SubvolumeListItem
impl UnsafeUnpin for SubvolumeListItem
impl UnwindSafe for SubvolumeListItem
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