summaryrefslogtreecommitdiff
path: root/c_src/cmds.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-05 22:09:24 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-06-20 17:16:33 -0400
commit45f6fe0a144a82542a37f34e826e16dedfdaca5d (patch)
treea91f6c521afbb2fb2bc17aa10a1d73e4960b80fe /c_src/cmds.h
parentf2d9a55b1b83bce71416b3dca7cf013154c04251 (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/cmds.h')
-rw-r--r--c_src/cmds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_src/cmds.h b/c_src/cmds.h
index 13451ef1..4454f33f 100644
--- a/c_src/cmds.h
+++ b/c_src/cmds.h
@@ -16,6 +16,8 @@ int cmd_reset_counters(int argc, char *argv[]);
int cmd_strip_alloc(int argc, char *argv[]);
int cmd_set_option(int argc, char *argv[]);
+int image_cmds(int argc, char *argv[]);
+
int fs_usage(void);
int cmd_fs_usage(int argc, char *argv[]);
int cmd_fs_top(int argc, char *argv[]);