summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bcachefs_ioctl.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-02-07 05:17:26 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:53 +0200
commitfcb3431be837d06ae9af6eedde6a6509881664de (patch)
tree207bccd6939e15f6c1a7377ef2f8ef355b14fcaa /fs/bcachefs/bcachefs_ioctl.h
parentbcachefs: Run fsck if BCH_FEATURE_alloc_v2 isn't set (diff)
downloadlinux-fcb3431be837d06ae9af6eedde6a6509881664de.tar.xz
linux-fcb3431be837d06ae9af6eedde6a6509881664de.zip
bcachefs: Redo checks for sufficient devices
When the replicas mechanism was added, for tracking data by which drives it's replicated on, the check for whether we have sufficient devices was never updated to make use of it. This patch finally does that. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs_ioctl.h')
-rw-r--r--fs/bcachefs/bcachefs_ioctl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs_ioctl.h b/fs/bcachefs/bcachefs_ioctl.h
index 1bf834e31775..38c6ac96e12f 100644
--- a/fs/bcachefs/bcachefs_ioctl.h
+++ b/fs/bcachefs/bcachefs_ioctl.h
@@ -14,6 +14,9 @@
#define BCH_FORCE_IF_DATA_DEGRADED (1 << 2)
#define BCH_FORCE_IF_METADATA_DEGRADED (1 << 3)
+#define BCH_FORCE_IF_LOST \
+ (BCH_FORCE_IF_DATA_LOST| \
+ BCH_FORCE_IF_METADATA_LOST)
#define BCH_FORCE_IF_DEGRADED \
(BCH_FORCE_IF_DATA_DEGRADED| \
BCH_FORCE_IF_METADATA_DEGRADED)