diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-03-25 23:12:33 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:37 +0300 |
commit | f1d786a0dbc4483d176985ebe8f82fb7cdeec429 (patch) | |
tree | 72bfffbad869cbca22f33f6fa14c36400ad6bdda /fs/bcachefs/opts.h | |
parent | 2f194e1697f733a2eae1d040eabe71b05c049e0b (diff) | |
download | linux-f1d786a0dbc4483d176985ebe8f82fb7cdeec429.tar.xz |
bcachefs: Add an option for keeping journal entries after startup
This will be used by the userspace debug tools.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 59c7b3685745..1e579f67346a 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -255,6 +255,11 @@ enum opt_type { OPT_BOOL(), \ NO_SB_OPT, false, \ NULL, "Don't replay the journal") \ + x(keep_journal, u8, \ + OPT_MOUNT, \ + OPT_BOOL(), \ + NO_SB_OPT, false, \ + NULL, "Don't free journal entries/keys after startup")\ x(noexcl, u8, \ OPT_MOUNT, \ OPT_BOOL(), \ |