[][src]Struct btrfsutil_sys::btrfs_util_subvolume_info

#[repr(C)]pub struct btrfs_util_subvolume_info {
    pub id: u64,
    pub parent_id: u64,
    pub dir_id: u64,
    pub flags: u64,
    pub uuid: [u8; 16],
    pub parent_uuid: [u8; 16],
    pub received_uuid: [u8; 16],
    pub generation: u64,
    pub ctransid: u64,
    pub otransid: u64,
    pub stransid: u64,
    pub rtransid: u64,
    pub ctime: timespec,
    pub otime: timespec,
    pub stime: timespec,
    pub rtime: timespec,
}

struct btrfs_util_subvolume_info - Information about a Btrfs subvolume.

Fields

id: u64

@id: ID of this subvolume, unique across the filesystem.

parent_id: u64

@parent_id: ID of the subvolume which contains this subvolume, or zero for the root subvolume (BTRFS_FS_TREE_OBJECTID) or orphaned subvolumes (i.e., subvolumes which have been deleted but not yet cleaned up).

dir_id: u64

@dir_id: Inode number of the directory containing this subvolume in the parent subvolume, or zero for the root subvolume (BTRFS_FS_TREE_OBJECTID) or orphaned subvolumes.

flags: u64

@flags: On-disk root item flags.

uuid: [u8; 16]

@uuid: UUID of this subvolume.

parent_uuid: [u8; 16]

@parent_uuid: UUID of the subvolume this subvolume is a snapshot of, or all zeroes if this subvolume is not a snapshot.

received_uuid: [u8; 16]

@received_uuid: UUID of the subvolume this subvolume was received from, or all zeroes if this subvolume was not received. Note that this field, @stransid, @rtransid, @stime, and @rtime are set manually by userspace after a subvolume is received.

generation: u64

@generation: Transaction ID of the subvolume root.

ctransid: u64

@ctransid: Transaction ID when an inode in this subvolume was last changed.

otransid: u64

@otransid: Transaction ID when this subvolume was created.

stransid: u64

@stransid: Transaction ID of the sent subvolume this subvolume was received from, or zero if this subvolume was not received. See the note on @received_uuid.

rtransid: u64

@rtransid: Transaction ID when this subvolume was received, or zero if this subvolume was not received. See the note on @received_uuid.

ctime: timespec

@ctime: Time when an inode in this subvolume was last changed.

otime: timespec

@otime: Time when this subvolume was created.

stime: timespec

@stime: Not well-defined, usually zero unless it was set otherwise. See the note on @received_uuid.

rtime: timespec

@rtime: Time when this subvolume was received, or zero if this subvolume was not received. See the note on @received_uuid.

Trait Implementations

impl Clone for btrfs_util_subvolume_info[src]

impl Copy for btrfs_util_subvolume_info[src]

impl Debug for btrfs_util_subvolume_info[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.