diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-30 18:09:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-30 18:30:55 -0400 |
commit | 689b1f32c808a06e270cf5158dff7358ffeb52d0 (patch) | |
tree | 133e89735050b04a758c72a265137627c1d50211 /fs/bcachefs/opts.h | |
parent | d32b1958b7d3e3dbb636cb837261bdbffe99c2e6 (diff) |
bcachefs: opts.large_journal
By default the maximum per-device journal is 8GB (and this should
probably be revised for large memory machines).
When debugging we often want as much history as possible so that we can
reconstruct a full sequence of events: enabling this option raises the
limit to 32GB, at the expense of slower recovery from unclean shutdown.
Users with mixed ssd/hdd setups may want to ensure that only the ssds
are used for journalling, via the data_allowed option (note that we
don't yet have an easy way to remove a journal from an existing device).
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index d6c4abd316ba..4a7a60588c10 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -343,6 +343,12 @@ enum fsck_err_opts { OPT_UINT(0, U32_MAX), \ BCH_SB_JOURNAL_RECLAIM_DELAY, 100, \ NULL, "Delay in milliseconds before automatic journal reclaim")\ + x(large_journal, bool, \ + OPT_FS|OPT_MOUNT|OPT_FORMAT, \ + OPT_BOOL(), \ + BCH2_NO_SB_OPT, false, \ + NULL, "Allocate a bigger than normal journal: recovery from unclean "\ + "shutdown will be slower, but more info will be available for debugging")\ x(move_bytes_in_flight, u32, \ OPT_HUMAN_READABLE|OPT_FS|OPT_MOUNT|OPT_RUNTIME, \ OPT_UINT(1024, U32_MAX), \ |