diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-25 03:07:21 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:54 +0300 |
commit | 33669e0cc94e9554cf162cbe2e63155887a10231 (patch) | |
tree | 2c39afb2b393d1d0b131af86456123573320ad00 /fs/bcachefs/opts.h | |
parent | 1a14e255100cb17cface9ca179ca7ddba87fd8b9 (diff) | |
download | linux-33669e0cc94e9554cf162cbe2e63155887a10231.tar.xz |
bcachefs: Add option for completely disabling nocow
This adds an option for completely disabling nocow mode, including the
locking in the data move path.
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 fc444c68025c..afbf82d62977 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -404,6 +404,12 @@ enum opt_type { NULL, "Nocow mode: Writes will be done in place when possible.\n"\ "Snapshots and reflink will still caused writes to be COW\n"\ "Implicitly disables data checksumming, compression and encryption")\ + x(nocow_enabled, u8, \ + OPT_FS|OPT_MOUNT, \ + OPT_BOOL(), \ + BCH2_NO_SB_OPT, true, \ + NULL, "Enable nocow mode: enables runtime locking in\n"\ + "data move path needed if nocow will ever be in use\n")\ x(no_data_io, u8, \ OPT_MOUNT, \ OPT_BOOL(), \ |