#[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§
source§impl AsBytes for VolumeManagerInfowhere
u64: AsBytes,
HasPadding<VolumeManagerInfo, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for VolumeManagerInfowhere u64: AsBytes, HasPadding<VolumeManagerInfo, { _ }>: ShouldBe<{ _ }>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Clone for VolumeManagerInfo
impl Clone for VolumeManagerInfo
source§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 moresource§impl Debug for VolumeManagerInfo
impl Debug for VolumeManagerInfo
source§impl Decode<VolumeManagerInfo> for VolumeManagerInfo
impl Decode<VolumeManagerInfo> for VolumeManagerInfo
source§impl Encode<VolumeManagerInfo> for &VolumeManagerInfo
impl Encode<VolumeManagerInfo> for &VolumeManagerInfo
source§impl<T0: Encode<u64>, T1: Encode<u64>, T2: Encode<u64>, T3: Encode<u64>, T4: Encode<u64>> Encode<VolumeManagerInfo> for (T0, T1, T2, T3, T4)
impl<T0: Encode<u64>, T1: Encode<u64>, T2: Encode<u64>, T3: Encode<u64>, T4: Encode<u64>> Encode<VolumeManagerInfo> for (T0, T1, T2, T3, T4)
source§impl FromBytes for VolumeManagerInfowhere
u64: FromBytes,
impl FromBytes for VolumeManagerInfowhere u64: FromBytes,
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Self
from zeroed bytes.source§impl Hash for VolumeManagerInfo
impl Hash for VolumeManagerInfo
source§impl Ord for VolumeManagerInfo
impl Ord for VolumeManagerInfo
source§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,
source§impl PartialEq<VolumeManagerInfo> for VolumeManagerInfo
impl PartialEq<VolumeManagerInfo> for VolumeManagerInfo
source§fn eq(&self, other: &VolumeManagerInfo) -> bool
fn eq(&self, other: &VolumeManagerInfo) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VolumeManagerInfo> for VolumeManagerInfo
impl PartialOrd<VolumeManagerInfo> for VolumeManagerInfo
source§fn partial_cmp(&self, other: &VolumeManagerInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &VolumeManagerInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for VolumeManagerInfo
impl TypeMarker for VolumeManagerInfo
§type Owned = VolumeManagerInfo
type Owned = VolumeManagerInfo
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§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 moresource§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.source§impl ValueTypeMarker for VolumeManagerInfo
impl ValueTypeMarker for VolumeManagerInfo
§type Borrowed<'a> = &'a <VolumeManagerInfo as TypeMarker>::Owned
type Borrowed<'a> = &'a <VolumeManagerInfo as TypeMarker>::Owned
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more