Skip to main content

Module format

Module format 

Source
Expand description

Raw on-disk format structs for erofs. See https://erofs.docs.kernel.org/en/latest/ondisk/core_ondisk.html for more details.

Structs§

CompressionMapHeader
Compression metadata header. For inodes with compressed data layouts, this header is written after the core metadata and extended attributes, padded to the next 8-byte boundary. It contains the compression info for this particular inode.
Dirent
Directory entry on-disk format. Contained within the directory data blocks.
InodeCompact
Compact inode on-disk format. Fits within a single inode slot.
InodeExtended
Extended inode on-disk format. Uses two inode slots. Allows for more metadata and also larger files.
LClusterIndex
Logical cluster index entry, for the legacy CompressedFull data layout. One of these exists per logical cluster in the inode data.
SuperBlock
The on-disk format of an erofs superblock.
XattrEntry
Xattr entry record header. Describes an individual xattr key-value pair for this inode. The name suffix and value data immediately follow this header, padded to a 4-byte boundary.
XattrInlineBodyHeader
Inlined xattr body header. This sits immediately following the inode metadata if the xattr_icount is non-zero, providing information about the structure of the following xattr entries.

Constants§

DIRENT_SIZE
EROFS_MAGIC
Magic number for erofs filesystems.
INODE_SLOT_SIZE
LEGACY_MAP_HEADER_SIZE
Size of the compression map header area for legacy compressed inodes (8-byte header + 8-byte reserved gap). This is for historical reasons.
SUPERBLOCK_OFFSET