diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-28 04:02:27 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-06 07:24:19 +0300 |
commit | 0d529663f04be744d6af879889c5b16e46286ce1 (patch) | |
tree | dae3189ea2da879c82ebe738138c9b92e44d139e /fs/bcachefs/errcode.h | |
parent | 6b00de06f51c5388f1a7eddd4ad7df8e3b8863b5 (diff) | |
download | linux-0d529663f04be744d6af879889c5b16e46286ce1.tar.xz |
bcachefs: Split brain detection
Use the new bch_member->seq, sb->write_time fields to detect split brain
and kick out devices when necessary.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/errcode.h')
-rw-r--r-- | fs/bcachefs/errcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index 9d53b7fd6e84..8c40c2067a04 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -170,6 +170,7 @@ x(EINVAL, device_size_too_small) \ x(EINVAL, device_not_a_member_of_filesystem) \ x(EINVAL, device_has_been_removed) \ + x(EINVAL, device_splitbrain) \ x(EINVAL, device_already_online) \ x(EINVAL, insufficient_devices_to_start) \ x(EINVAL, invalid) \ |