diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-07 14:26:18 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:49 -0400 |
| commit | 8c69e2b52ea81b102ace48debd114467199ca77a (patch) | |
| tree | 05cd41ba6d2009dfa8ba2fbae8b4a3aaa79ba33c /fs/bcachefs/opts.h | |
| parent | a8539ad8fa88e39c3f566b7c35029f25ab90b72e (diff) | |
bcachefs: Knob for manual snapshot deletion
Add 'opts.snapshot_deletion_enabled', enabled by default.
This may be turned off so that the new sysfs knob,
'internal/trigger_delete_dead_snapshots', may be used instead - this
will allow snapshot deletion to be profiled more easily.
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 f4c014ad43c1..2a02606254b3 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -495,6 +495,12 @@ enum fsck_err_opts { OPT_BOOL(), \ BCH_SB_REBALANCE_AC_ONLY, false, \ NULL, "Enable rebalance while on mains power only\n") \ + x(auto_snapshot_deletion, u8, \ + OPT_FS|OPT_MOUNT|OPT_RUNTIME, \ + OPT_BOOL(), \ + BCH2_NO_SB_OPT, true, \ + NULL, "Enable automatic snapshot deletion: disable for debugging, or to\n"\ + "quiet the system when doing performance testing\n")\ x(no_data_io, u8, \ OPT_MOUNT, \ OPT_BOOL(), \ |
