diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-03-25 16:20:45 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-03-25 16:23:29 -0400 |
commit | 2dbedd962bc923f43ea546f19d9b5240ea3c9d95 (patch) | |
tree | 42f0ee6c6534763f8d97cd5020e12749d51828df /bcachefs.c | |
parent | 517440cc98a3e38c753598772d102c79f0f71c70 (diff) |
Add a command for dumping contents of journal
Diffstat (limited to 'bcachefs.c')
-rw-r--r-- | bcachefs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,6 +75,7 @@ static void usage(void) "These commands work on offline, unmounted filesystems\n" " dump Dump filesystem metadata to a qcow2 image\n" " list List filesystem metadata in textual form\n" + " list_journal List contents of journal\n" "\n" "Miscellaneous:\n" " version Display the version of the invoked bcachefs tool\n"); @@ -199,6 +200,8 @@ int main(int argc, char *argv[]) return cmd_dump(argc, argv); if (!strcmp(cmd, "list")) return cmd_list(argc, argv); + if (!strcmp(cmd, "list_journal")) + return cmd_list_journal(argc, argv); if (!strcmp(cmd, "setattr")) return cmd_setattr(argc, argv); |