Crate btrfs_diskformat

Source

Re-exports§

pub use crate::aliases::*;

Modules§

aliases
This module contains aliases from the crate’s types to the wiki-style snake case names for convenience.
constants

Structs§

AllocationType
The type of storage a block group allows.
BackrefRevisionIter
An iterator over the variants of BackrefRevision
BlockGroupItem
Defines the location, properties, and usage of a block group.
ChecksumTypeIter
An iterator over the variants of ChecksumType
Chunk
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.
ChunkDynamic
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.
DevExtent
Maps physical extents on an individual backing device to a chunk. This extent may be the only one for a particular chunk or one of several.
DevItem
Represents a complete block device.
ExtentDataRef
Contains an indirect back reference for a file data extent.
ExtentInlineExtentDataRef
An ExtentInlineRefHeader and/or ExtentInlineRefFull where the value is known to be ExtentInlineRefType::ExtentDataRef.
ExtentInlineRefFull
This type contains a union of all possible inline extent references. Using this can be helpful when an entire inline reference is read from disk to save trips to the disk but the type of the reference is not known in advance.
ExtentInlineRefHeader
This acts as a header for different types of inline extent back references inside extent or metadata items.
ExtentInlineRefSharedDataTail
A variant of ExtentInlineRefTail for ExtentInlineRefType::SharedDataRef.
ExtentInlineRefTypeIter
An iterator over the variants of ExtentInlineRefType
ExtentInlineSharedBlockRef
An ExtentInlineRefHeader and/or ExtentInlineRefFull where the value is known to be ExtentInlineRefType::SharedBlockRef.
ExtentInlineSharedDataRef
An ExtentInlineRefHeader and/or ExtentInlineRefFull where the value is known to be ExtentInlineRefType::SharedDataRef.
ExtentInlineTreeBlockRef
An ExtentInlineRefHeader and/or ExtentInlineRefFull where the value is known to be ExtentInlineRefType::TreeBlockRef.
Header
The data stored at the start of every node.
InodeFlags
InodeItem
Contains traditional inode data and attributes.
Item
For leaf nodes, the node header is followed by a dynamic number of items.
Key
A key used to describe and locate any item in any tree.
KeyPointer
For internal (non-leaf) nodes, the node header is followed by a dynamic amount of key pointers.
ReplicationPolicy
The replication policy a block group implements.
RootBackup
RootItem
Defines the location and parameters of the root of a b-tree.
RootRef
References a subvolume filesystem tree root. This is used for both forward and backward root references.
SharedDataRef
This structure contains the reference count for a shared back reference for a file data extent.
Stripe
This structure is used to define the backing device storage that compose a Chunk.
SuperBlock
The layout of the superblock. A valid superblock must exist for most btrfs implementations to mount the filesystem.
Time
The layout of timestamps on disk.

Enums§

BackrefRevision
ChecksumType
The hashing algorithm used for checksumming.
ExtentInlineRefType
The type of ExtentInlineRefHeader or ExtentInlineRefFull.

Type Aliases§

UuidBytes
An inline array of bytes representing a UUID within the filesystem.

Unions§

ExtentInlineRefTail
Union that contains the actual data for the inline extent reference.