Skip to main content

Superblock

Struct Superblock 

Source
#[repr(C, packed(1))]
pub struct Superblock { pub magic: [u8; 8], pub version: u32, pub root_sector: u32, pub bitmap_start: u32, pub bitmap_sectors: u32, pub chunk_root: u32, pub generation: u64, pub snap_table: u32, pub last_snap_gen: u64, pub flags: u32, pub max_snapshots: u32, }
Expand description

ディスク上の Superblock 構造 (サイズ 24 バイト)

Fields§

§magic: [u8; 8]§version: u32§root_sector: u32§bitmap_start: u32§bitmap_sectors: u32§chunk_root: u32

チャンクの索引(チャンクの名前 → 先頭セクタ)のルート。

§generation: u64

確定の世代(確定のたびに 1 進む)。版の記録に入る。

§snap_table: u32

スナップショットの記録の表の先頭。

§last_snap_gen: u64

版の履歴を残す境目(最新のスナップショットの世代。これより後の版だけを残す。下げない)。

§flags: u32

SB_KEEP_HISTORY など。

§max_snapshots: u32

スナップショットの上限件数(ピン留めは数えない)。

Trait Implementations§

Source§

impl Clone for Superblock

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Superblock

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> Same for T

Source§

type Output = T

Should always be Self
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.