Skip to content

Split brain detection

Kent Overstreet linux-bcachefs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bcachefs: bch_member->seqfs/bcachefs/bcachefs_format.h fs/bcachefs/sb-members.c fs/bcachefs/super-io.c+18 -10 replies
2/2bcachefs: Split brain detectionfs/bcachefs/errcode.h fs/bcachefs/super.c+46 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Split brain detection

Two patch series for split brain detection: that is, detect when different members of a filesystem have been used, independently, in degraded mode and diverged - when that happens we can no longer use those members in combination.

First patch adds superblock facilities: we add a superblock sequence number field to bch_member, and a write time field to the superblock to detect cases when sb->seq is equal but they actually have diverged.

Second patch does the actual split brain detection and kicking out of devices when necessary.

Kent Overstreet (2):
bcachefs: bch_member->seq
bcachefs: Split brain detection

 fs/bcachefs/bcachefs_format.h |  4 ++-
 fs/bcachefs/errcode.h         |  1 +
 fs/bcachefs/sb-members.c      |  5 ++++
 fs/bcachefs/super-io.c        | 10 +++++++
 fs/bcachefs/super.c           | 56 ++++++++++++++++++++++++++++-------
 5 files changed, 64 insertions(+), 12 deletions(-)
Signature · 1 line
2.42.0