Struct VolumeManagerInfo
#[repr(C)]pub struct VolumeManagerInfo {
pub slice_size: u64,
pub slice_count: u64,
pub assigned_slice_count: u64,
pub maximum_slice_count: u64,
pub max_virtual_slice: u64,
}
Expand description
VolumeManagerInfo describes the properties of the volume manager and not each individual volume.
Fields§
§slice_size: u64
Size of a single slice, in bytes.
slice_count: u64
Number of slices the volume manager is able use right now. This counts the allocated_slice_count plus the number of available slices.
assigned_slice_count: u64
Number of slices currently assigned to partitions.
maximum_slice_count: u64
The maximum capacity which the Volume Manager could grow to utilize if the partition containing the Volume Manager itself expands (i.e., the Volume Manager is initialized on a GPT partition that has extended beyond the originally allocated capacity). This value is the number of entries reserved in the volume manager header and is not related to the size of the physical device (which may be larger or smaller).
max_virtual_slice: u64
Largest value that can be used for a virtual slice number.
Trait Implementations§
§impl Clone for VolumeManagerInfo
impl Clone for VolumeManagerInfo
§fn clone(&self) -> VolumeManagerInfo
fn clone(&self) -> VolumeManagerInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for VolumeManagerInfo
impl Debug for VolumeManagerInfo
§impl<D> Decode<VolumeManagerInfo, D> for VolumeManagerInfowhere
D: ResourceDialect,
impl<D> Decode<VolumeManagerInfo, D> for VolumeManagerInfowhere
D: ResourceDialect,
§fn new_empty() -> VolumeManagerInfo
fn new_empty() -> VolumeManagerInfo
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<VolumeManagerInfo, D> for &VolumeManagerInfowhere
D: ResourceDialect,
impl<D> Encode<VolumeManagerInfo, D> for &VolumeManagerInfowhere
D: ResourceDialect,
§impl Hash for VolumeManagerInfo
impl Hash for VolumeManagerInfo
§impl Ord for VolumeManagerInfo
impl Ord for VolumeManagerInfo
§fn cmp(&self, other: &VolumeManagerInfo) -> Ordering
fn cmp(&self, other: &VolumeManagerInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for VolumeManagerInfo
impl PartialEq for VolumeManagerInfo
§impl PartialOrd for VolumeManagerInfo
impl PartialOrd for VolumeManagerInfo
§impl TypeMarker for VolumeManagerInfo
impl TypeMarker for VolumeManagerInfo
§type Owned = VolumeManagerInfo
type Owned = VolumeManagerInfo
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for VolumeManagerInfo
impl ValueTypeMarker for VolumeManagerInfo
§type Borrowed<'a> = &'a VolumeManagerInfo
type Borrowed<'a> = &'a VolumeManagerInfo
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<VolumeManagerInfo as TypeMarker>::Owned,
) -> <VolumeManagerInfo as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<VolumeManagerInfo as TypeMarker>::Owned, ) -> <VolumeManagerInfo as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.