Skip to main content

Module composefs_info

Module composefs_info 

Source
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 entries
  • dump — 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 --basedir
  • measure-file — computes fs-verity digest of files

Compatibility notes:

  • measure-file tries FS_IOC_MEASURE_VERITY first; falls back to in-process computation when the kernel reports verity is absent or the filesystem doesn’t support it, matching the C lcfs_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-info subcommand.
run_with_cli 🔒