ReadonlyblockReadonlyblocksReadonlydiskReadonlygroupsReadonlyinodeReadonlyinodesReadonlysbInternal
The inode's mapping: logical runs to physical blocks, and the tree's own blocks.
Writes back everything changed: bitmaps, descriptors, the superblock. Call when done.
e.g. "security.selinux" → the value, or undefined.
The SELinux label without its trailing NUL, e.g. u:object_r:system_file:s0.
Creates a directory. Its parent must exist; it must not.
Creates the directories on path that don't exist yet, each with attrs.
Replaces a file's contents, keeping its owner, mode and every xattr (the label, security.capability, …).
Optionaltime: numberThe inode at path ("/" is the filesystem's root). Throws if it doesn't exist.
Internal
Points the inode at runs (sorted, logical from 0), with a leaf block when they don't fit in it. Returns the tree's block count.
Sets the SELinux label of an existing file (in the inode).
Creates a regular file with data. Its parent must exist; it must not.
Internal
The inode's xattrs in a block of their own (EXT4_XATTR_MAGIC, refcount 1): entries sorted as the kernel searches them (index, name length, name), values from the end, with the entry and block hashes e2fsck checks. Adds the block to i_file_acl and i_blocks.
Staticopen
Allocates
countblocks, as few runs as it can, starting the search neargoal.