summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/opts.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-06-02 16:30:54 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:40 -0400
commit36b8372b595748d37dcdcd915c176bada978fbe5 (patch)
treeb90232bfc25d7bad19a569884da2116e995affb0 /fs/bcachefs/opts.h
parent039fc4c5221f7433d8383e25a7c70b30793b4916 (diff)
downloadlinux-stable-36b8372b595748d37dcdcd915c176bada978fbe5.tar.gz
linux-stable-36b8372b595748d37dcdcd915c176bada978fbe5.tar.bz2
linux-stable-36b8372b595748d37dcdcd915c176bada978fbe5.zip
bcachefs: Add an option to disable reflink support
Reflink might be buggy, so we're adding an option so users can help bisect what's going on. 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h
index 1e579f67346a..fe457117bf89 100644
--- a/fs/bcachefs/opts.h
+++ b/fs/bcachefs/opts.h
@@ -207,6 +207,11 @@ enum opt_type {
OPT_BOOL(), \
BCH_SB_PRJQUOTA, false, \
NULL, "Enable project quotas") \
+ x(reflink, u8, \
+ OPT_FORMAT|OPT_MOUNT|OPT_RUNTIME, \
+ OPT_BOOL(), \
+ BCH_SB_REFLINK, true, \
+ NULL, "Enable reflink support") \
x(degraded, u8, \
OPT_MOUNT, \
OPT_BOOL(), \