#[repr(C)]
pub struct btrfs_util_subvolume_info {
Show 16 fields 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,
}
Expand description

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§

source§

impl Clone for btrfs_util_subvolume_info

source§

fn clone(&self) -> btrfs_util_subvolume_info

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for btrfs_util_subvolume_info

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for btrfs_util_subvolume_info

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.