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.
- 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.
- 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 - SUPERBLOCK_
OFFSET