From 45f6fe0a144a82542a37f34e826e16dedfdaca5d Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 5 Apr 2025 22:09:24 -0400 Subject: 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 --- c_src/bcachefs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c_src/bcachefs.c') 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" -- cgit v1.2.3