Skip to content

btrfs: enhanced logic for stray single device

Anand Jain linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: declare btrfs_free_stale_devices non-staticfs/btrfs/volumes.c fs/btrfs/volumes.h+2 -10 replies
2/4btrfs: forget stray device on failed openfs/btrfs/super.c+3 -02 replies
3/4btrfs: refactor btrfs_free_stale_devices to free single stray devicefs/btrfs/super.c fs/btrfs/volumes.c fs/btrfs/volumes.h+15 -60 replies
4/4btrfs: validate device_list at scan for stray freefs/btrfs/volumes.c+2 -03 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/4] btrfs: enhanced logic for stray single device

This patch series comprises two preparatory patches (patches 1 and 3 below), one bug fix (patch 2), and one logic hardening patch (patch 4) designed to address issues with stray single devices.

The objective is to ensure that single devices are not left lingering in the device list unless they are properly mounted.

Anand Jain (4):
btrfs: declare btrfs_free_stale_devices non-static
btrfs: forget stray device on failed open
btrfs: refactor btrfs_free_stale_devices to free single stray device
btrfs: validate device_list at scan for stray free

 fs/btrfs/super.c   |  3 +++
 fs/btrfs/volumes.c | 18 ++++++++++++++----
 fs/btrfs/volumes.h |  2 ++
 3 files changed, 19 insertions(+), 4 deletions(-)
Signature · 1 line
2.38.1