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§

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.
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
SUPERBLOCK_OFFSET