Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: check for device item between super
@ 2025-08-02  0:26 Qu Wenruo
  2025-08-02  0:26 ` [PATCH 1/2] btrfs-progs: fsck-tests: make the warning check more specific for 057 Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Qu Wenruo @ 2025-08-02  0:26 UTC (permalink / raw)
  To: linux-btrfs

Mark has submitted a check enhancement for progs to detect the device
item mismatch between super blocks and the items inside chunk tree.

However there is a long existing problem that it will break CI.

The root cause is that the CI kernel lacks the needed backports, that on
a lot cases the kernel can lead to such mismatch and being caught by the
newer progs.

So to merge this long existing fsck enhancement, this series refresh and
workaround the problem by:

- Only reports warnings when such mismatch is detected
  Such mismatch is not a huge deal, as we always trust the device item in
  chunk tree more than the super block one.
  So it won't cause data loss or whatever.

  So even if the CI kernel doesn't have the fix, self test cases won't
  report them as a failure.

- Workaround fsck/057 to avoid failure
  Test case fsck/057 is a special case, where we manually check the
  output for warning messages.

  This is originally to detect problems related seed device, but now it
  will also detect device item mismatch cause by the older CI kernel.

  Workaround it by making the keyword more specific to the original
  problem, not just checking for warnings.

With those done, we can finally make CI to accept the new checks even
the kernel is not uptodate.

Mark Harmstone (1):
  btrfs-progs: check that device byte values in superblock match those
    in chunk root

Qu Wenruo (1):
  btrfs-progs: fsck-tests: make the warning check more specific for 057

 check/main.c                                  | 35 +++++++++++++++++++
 .../fsck-tests/057-seed-false-alerts/test.sh  |  6 ++--
 2 files changed, 38 insertions(+), 3 deletions(-)

--
2.50.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-05 23:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-02  0:26 [PATCH 0/2] btrfs-progs: check for device item between super Qu Wenruo
2025-08-02  0:26 ` [PATCH 1/2] btrfs-progs: fsck-tests: make the warning check more specific for 057 Qu Wenruo
2025-08-02  0:26 ` [PATCH 2/2] btrfs-progs: check that device byte values in superblock match those in chunk root Qu Wenruo
2025-08-05 19:34 ` [PATCH 0/2] btrfs-progs: check for device item between super Boris Burkov
2025-08-05 22:53   ` Qu Wenruo
2025-08-05 23:26     ` Boris Burkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox