diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-05 22:09:24 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-20 17:16:33 -0400 |
commit | 45f6fe0a144a82542a37f34e826e16dedfdaca5d (patch) | |
tree | a91f6c521afbb2fb2bc17aa10a1d73e4960b80fe /c_src/bcachefs.c | |
parent | f2d9a55b1b83bce71416b3dca7cf013154c04251 (diff) |
cmd_image_create
Add a tool for creating small image files.
Data is written out in a reproducible order, sequentially from the
start of the device.
Metadata is initially written to a temporary device, then after writing
out data, the metadata we want to keep (alloc info is left out by
default) is migrated to the real device.
Then, the image file is trimmed to minimum size and the temporary
metadata device dropped.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/bcachefs.c')
-rw-r--r-- | c_src/bcachefs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c_src/bcachefs.c b/c_src/bcachefs.c index 46c524c4..f4712597 100644 --- a/c_src/bcachefs.c +++ b/c_src/bcachefs.c @@ -38,6 +38,8 @@ void bcachefs_usage(void) " reset-counters Reset all counters on an unmounted device\n" " strip-alloc Strip alloc info on a filesystem to be used read-only\n" "\n" + "Commands for managing images:\n" + " image create Create a new compact disk image\n" "Mount:\n" " mount Mount a filesystem\n" "\n" |