ext2_super_block

Struct ext2_super_block 

Source
#[repr(C)]
pub struct ext2_super_block {
Show 103 fields pub s_inodes_count: __u32, pub s_blocks_count: __u32, pub s_r_blocks_count: __u32, pub s_free_blocks_count: __u32, pub s_free_inodes_count: __u32, pub s_first_data_block: __u32, pub s_log_block_size: __u32, pub s_log_cluster_size: __u32, pub s_blocks_per_group: __u32, pub s_clusters_per_group: __u32, pub s_inodes_per_group: __u32, pub s_mtime: __u32, pub s_wtime: __u32, pub s_mnt_count: __u16, pub s_max_mnt_count: __s16, pub s_magic: __u16, pub s_state: __u16, pub s_errors: __u16, pub s_minor_rev_level: __u16, pub s_lastcheck: __u32, pub s_checkinterval: __u32, pub s_creator_os: __u32, pub s_rev_level: __u32, pub s_def_resuid: __u16, pub s_def_resgid: __u16, pub s_first_ino: __u32, pub s_inode_size: __u16, pub s_block_group_nr: __u16, pub s_feature_compat: __u32, pub s_feature_incompat: __u32, pub s_feature_ro_compat: __u32, pub s_uuid: [__u8; 16], pub s_volume_name: [__u8; 16], pub s_last_mounted: [__u8; 64], pub s_algorithm_usage_bitmap: __u32, pub s_prealloc_blocks: __u8, pub s_prealloc_dir_blocks: __u8, pub s_reserved_gdt_blocks: __u16, pub s_journal_uuid: [__u8; 16], pub s_journal_inum: __u32, pub s_journal_dev: __u32, pub s_last_orphan: __u32, pub s_hash_seed: [__u32; 4], pub s_def_hash_version: __u8, pub s_jnl_backup_type: __u8, pub s_desc_size: __u16, pub s_default_mount_opts: __u32, pub s_first_meta_bg: __u32, pub s_mkfs_time: __u32, pub s_jnl_blocks: [__u32; 17], pub s_blocks_count_hi: __u32, pub s_r_blocks_count_hi: __u32, pub s_free_blocks_hi: __u32, pub s_min_extra_isize: __u16, pub s_want_extra_isize: __u16, pub s_flags: __u32, pub s_raid_stride: __u16, pub s_mmp_update_interval: __u16, pub s_mmp_block: __u64, pub s_raid_stripe_width: __u32, pub s_log_groups_per_flex: __u8, pub s_checksum_type: __u8, pub s_encryption_level: __u8, pub s_reserved_pad: __u8, pub s_kbytes_written: __u64, pub s_snapshot_inum: __u32, pub s_snapshot_id: __u32, pub s_snapshot_r_blocks_count: __u64, pub s_snapshot_list: __u32, pub s_error_count: __u32, pub s_first_error_time: __u32, pub s_first_error_ino: __u32, pub s_first_error_block: __u64, pub s_first_error_func: [__u8; 32], pub s_first_error_line: __u32, pub s_last_error_time: __u32, pub s_last_error_ino: __u32, pub s_last_error_line: __u32, pub s_last_error_block: __u64, pub s_last_error_func: [__u8; 32], pub s_mount_opts: [__u8; 64], pub s_usr_quota_inum: __u32, pub s_grp_quota_inum: __u32, pub s_overhead_clusters: __u32, pub s_backup_bgs: [__u32; 2], pub s_encrypt_algos: [__u8; 4], pub s_encrypt_pw_salt: [__u8; 16], pub s_lpf_ino: __le32, pub s_prj_quota_inum: __le32, pub s_checksum_seed: __le32, pub s_wtime_hi: __u8, pub s_mtime_hi: __u8, pub s_mkfs_time_hi: __u8, pub s_lastcheck_hi: __u8, pub s_first_error_time_hi: __u8, pub s_last_error_time_hi: __u8, pub s_first_error_errcode: __u8, pub s_last_error_errcode: __u8, pub s_encoding: __le16, pub s_encoding_flags: __le16, pub s_orphan_file_inum: __le32, pub s_reserved: [__le32; 94], pub s_checksum: __u32,
}

Fields§

§s_inodes_count: __u32§s_blocks_count: __u32§s_r_blocks_count: __u32§s_free_blocks_count: __u32§s_free_inodes_count: __u32§s_first_data_block: __u32§s_log_block_size: __u32§s_log_cluster_size: __u32§s_blocks_per_group: __u32§s_clusters_per_group: __u32§s_inodes_per_group: __u32§s_mtime: __u32§s_wtime: __u32§s_mnt_count: __u16§s_max_mnt_count: __s16§s_magic: __u16§s_state: __u16§s_errors: __u16§s_minor_rev_level: __u16§s_lastcheck: __u32§s_checkinterval: __u32§s_creator_os: __u32§s_rev_level: __u32§s_def_resuid: __u16§s_def_resgid: __u16§s_first_ino: __u32§s_inode_size: __u16§s_block_group_nr: __u16§s_feature_compat: __u32§s_feature_incompat: __u32§s_feature_ro_compat: __u32§s_uuid: [__u8; 16]§s_volume_name: [__u8; 16]§s_last_mounted: [__u8; 64]§s_algorithm_usage_bitmap: __u32§s_prealloc_blocks: __u8§s_prealloc_dir_blocks: __u8§s_reserved_gdt_blocks: __u16§s_journal_uuid: [__u8; 16]§s_journal_inum: __u32§s_journal_dev: __u32§s_last_orphan: __u32§s_hash_seed: [__u32; 4]§s_def_hash_version: __u8§s_jnl_backup_type: __u8§s_desc_size: __u16§s_default_mount_opts: __u32§s_first_meta_bg: __u32§s_mkfs_time: __u32§s_jnl_blocks: [__u32; 17]§s_blocks_count_hi: __u32§s_r_blocks_count_hi: __u32§s_free_blocks_hi: __u32§s_min_extra_isize: __u16§s_want_extra_isize: __u16§s_flags: __u32§s_raid_stride: __u16§s_mmp_update_interval: __u16§s_mmp_block: __u64§s_raid_stripe_width: __u32§s_log_groups_per_flex: __u8§s_checksum_type: __u8§s_encryption_level: __u8§s_reserved_pad: __u8§s_kbytes_written: __u64§s_snapshot_inum: __u32§s_snapshot_id: __u32§s_snapshot_r_blocks_count: __u64§s_snapshot_list: __u32§s_error_count: __u32§s_first_error_time: __u32§s_first_error_ino: __u32§s_first_error_block: __u64§s_first_error_func: [__u8; 32]§s_first_error_line: __u32§s_last_error_time: __u32§s_last_error_ino: __u32§s_last_error_line: __u32§s_last_error_block: __u64§s_last_error_func: [__u8; 32]§s_mount_opts: [__u8; 64]§s_usr_quota_inum: __u32§s_grp_quota_inum: __u32§s_overhead_clusters: __u32§s_backup_bgs: [__u32; 2]§s_encrypt_algos: [__u8; 4]§s_encrypt_pw_salt: [__u8; 16]§s_lpf_ino: __le32§s_prj_quota_inum: __le32§s_checksum_seed: __le32§s_wtime_hi: __u8§s_mtime_hi: __u8§s_mkfs_time_hi: __u8§s_lastcheck_hi: __u8§s_first_error_time_hi: __u8§s_last_error_time_hi: __u8§s_first_error_errcode: __u8§s_last_error_errcode: __u8§s_encoding: __le16§s_encoding_flags: __le16§s_orphan_file_inum: __le32§s_reserved: [__le32; 94]§s_checksum: __u32

Trait Implementations§

Source§

impl Clone for ext2_super_block

Source§

fn clone(&self) -> ext2_super_block

Returns a duplicate 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 ext2_super_block

Source§

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

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

impl Copy for ext2_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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.