Expand description
composefs-info - Query information from composefs images.
This is a Rust reimplementation of the C composefs-info tool, providing commands to inspect EROFS images, list objects, and compute fs-verity digests.
§Compatibility status
Implemented subcommands:
ls— lists files with type suffixes, skips whiteout entriesdump— outputs composefs-dump(5) text format (image → tree → dumpfile)objects— lists all backing file object paths (XX/XXXX…)missing-objects— lists objects not present in--basedirmeasure-file— computes fs-verity digest of files
Compatibility notes:
measure-filetriesFS_IOC_MEASURE_VERITYfirst; falls back to in-process computation when the kernel reports verity is absent or the filesystem doesn’t support it, matching the Clcfs_fd_get_fsverity()behaviour.
Structs§
- Cli 🔒
- Query information from composefs images.
Enums§
- Command 🔒
- Available subcommands.
Functions§
- cmd_
dump 🔒 - Dump the image in composefs-dump(5) text format.
- cmd_ls 🔒
- List files and directories in the image.
- cmd_
measure_ 🔒file - Compute and print the fs-verity digest of each file.
- cmd_
missing_ 🔒objects - List objects not present in basedir.
- cmd_
objects 🔒 - List all object paths from the images.
- collect_
objects_ 🔒from_ fs - Collect all external object IDs from a parsed filesystem.
- ls_
print 🔒 - Walk and print entries: directory line first, then recurse into children.
- print_
escaped 🔒 - Print escaped path (matches C implementation behavior).
- read_
image 🔒 - Read an entire image file into memory.
- run
- Entry point for the composefs-info multi-call mode.
- run_
from_ args - Entry point when invoked as a hidden
cfsctl composefs-infosubcommand. - run_
with_ 🔒cli