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§
- Compression
MapHeader - 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.
- Inode
Compact - Compact inode on-disk format. Fits within a single inode slot.
- Inode
Extended - Extended inode on-disk format. Uses two inode slots. Allows for more metadata and also larger files.
- LCluster
Index - Logical cluster index entry, for the legacy CompressedFull data layout. One of these exists per logical cluster in the inode data.
- Super
Block - The on-disk format of an erofs superblock.
- Xattr
Entry - 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.
- Xattr
Inline Body Header - 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