linux_raw_sys::btrfs

Struct btrfs_super_block

Source
#[repr(C, packed(1))]
pub struct btrfs_super_block {
Show 37 fields pub csum: [__u8; 32], pub fsid: [__u8; 16], pub bytenr: __le64, pub flags: __le64, pub magic: __le64, pub generation: __le64, pub root: __le64, pub chunk_root: __le64, pub log_root: __le64, pub __unused_log_root_transid: __le64, pub total_bytes: __le64, pub bytes_used: __le64, pub root_dir_objectid: __le64, pub num_devices: __le64, pub sectorsize: __le32, pub nodesize: __le32, pub __unused_leafsize: __le32, pub stripesize: __le32, pub sys_chunk_array_size: __le32, pub chunk_root_generation: __le64, pub compat_flags: __le64, pub compat_ro_flags: __le64, pub incompat_flags: __le64, pub csum_type: __le16, pub root_level: __u8, pub chunk_root_level: __u8, pub log_root_level: __u8, pub dev_item: btrfs_dev_item, pub label: [c_char; 256], pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16], pub nr_global_roots: __u64, pub reserved: [__le64; 27], pub sys_chunk_array: [__u8; 2048], pub super_roots: [btrfs_root_backup; 4], pub padding: [__u8; 565],
}

Fields§

§csum: [__u8; 32]§fsid: [__u8; 16]§bytenr: __le64§flags: __le64§magic: __le64§generation: __le64§root: __le64§chunk_root: __le64§log_root: __le64§__unused_log_root_transid: __le64§total_bytes: __le64§bytes_used: __le64§root_dir_objectid: __le64§num_devices: __le64§sectorsize: __le32§nodesize: __le32§__unused_leafsize: __le32§stripesize: __le32§sys_chunk_array_size: __le32§chunk_root_generation: __le64§compat_flags: __le64§compat_ro_flags: __le64§incompat_flags: __le64§csum_type: __le16§root_level: __u8§chunk_root_level: __u8§log_root_level: __u8§dev_item: btrfs_dev_item§label: [c_char; 256]§cache_generation: __le64§uuid_tree_generation: __le64§metadata_uuid: [__u8; 16]§nr_global_roots: __u64§reserved: [__le64; 27]§sys_chunk_array: [__u8; 2048]§super_roots: [btrfs_root_backup; 4]§padding: [__u8; 565]

Trait Implementations§

Source§

impl Clone for btrfs_super_block

Source§

fn clone(&self) -> btrfs_super_block

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_super_block

Source§

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

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

impl Copy for btrfs_super_block

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.