Struct btrfs_diskformat::Chunk [−][src]
This structure contains the mapping from a virtualized usable byte range within the backing
storage to a set of one or more stripes on individual backing devices. In addition to the
mapping, hints on optimal I/O parameters for this chunk. It is associated with CHUNK_ITEM
.
Although the structure definition only contains one stripe member, CHUNK_ITEM
contain as
many struct Stripe
structures as specified in the num_stripes
and sub_stripes
fields.
Fields
length: U64<LE>
The size of this chunk, in bytes.
owner: U64<LE>
The object ID of the root referencing this chunk. This is always the ID of an extent root.
stripe_len: U64<LE>
The replication stripe length.
type: U64<LE>
Flags indicating allocation type and replication policy.
io_align: U32<LE>
The optimal I/O alignment for this chunk.
io_width: U32<LE>
The optimal I/O width for this chunk.
sector_size: U32<LE>
The minimal I/O size for this chunk.
num_stripes: U16<LE>
The number of replication stripes.
sub_stripes: U16<LE>
The number of sub-stripes. This is only used for RAID-10.
stripe: Stripe
The first of one or more stripes that map to device extents.
Trait Implementations
impl AsBytes for Chunk
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
[src]
Self: FromBytes,
impl Clone for Chunk
[src]
impl Copy for Chunk
[src]
impl Debug for Chunk
[src]
impl FromBytes for Chunk
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
impl Unaligned for Chunk
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,