Skip to main content

Module inode

Module inode 

Source
Expand description

§Inode and path resolution: mapping between inodes, logical addresses, and paths

Covers looking up the subvolume root ID that contains a given file, resolving an inode number to its filesystem paths, mapping a logical byte address back to the inodes that reference it, and resolving a subvolume ID to its path within the filesystem.

Structs§

InoLookupUserResult
Result of an unprivileged inode lookup (BTRFS_IOC_INO_LOOKUP_USER).
LogicalInoResult
Result from logical-ino resolution: (inode, offset, root)

Functions§

ino_lookup_user
Unprivileged inode lookup: resolve a subvolume’s name and parent path.
ino_paths
Get file system paths for the given inode.
logical_ino
Get inode, offset, and root information for a logical address.
lookup_path_rootid
Look up the tree ID (root ID) of the subvolume containing the given file or directory.
subvolid_resolve
Resolve a subvolume ID to its full path on the filesystem.