diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-08 21:51:48 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-08 21:52:14 -0400 |
commit | bec3a265658010a6cbf0cfac6dca461a7edf2c7d (patch) | |
tree | c1093cd646a8ca772d96faeaab449db72cb3bfa0 /cmd_debug.c | |
parent | b6fc4864a7f0aea7fc0bf99e829ef678aa3723a3 (diff) |
cmd_list_journal: Add -v (verbose)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'cmd_debug.c')
-rw-r--r-- | cmd_debug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd_debug.c b/cmd_debug.c index fd9c6b0c..10b6af0a 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -579,6 +579,7 @@ static void list_journal_usage(void) "Options:\n" " -a Read entire journal, not just dirty entries\n" " -n Number of journal entries to print, starting from the most recent\n" + " -v Verbose mode\n" " -h Display this help and exit\n" "Report bugs to <linux-bcachefs@vger.kernel.org>"); } @@ -608,7 +609,7 @@ int cmd_list_journal(int argc, char *argv[]) opt_set(opts, keep_journal, true); opt_set(opts, read_journal_only,true); - while ((opt = getopt(argc, argv, "an:h")) != -1) + while ((opt = getopt(argc, argv, "an:vh")) != -1) switch (opt) { case 'a': opt_set(opts, read_entire_journal, true); @@ -617,6 +618,9 @@ int cmd_list_journal(int argc, char *argv[]) nr_entries = kstrtouint(optarg, 10, &nr_entries); opt_set(opts, read_entire_journal, true); break; + case 'v': + opt_set(opts, verbose, true); + break; case 'h': list_journal_usage(); exit(EXIT_SUCCESS); |