Skip to content

btrfs-progs: forget removed devices

Boris Burkov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: allow btrfs device scan -u on dead devcmds/device.c+1 -10 replies
2/2btrfs-progs: add udev rule to forget removed device64-btrfs-rm.rules Makefile+8 -12 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchBoris Burkov
1/2
2/2Signed-of-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: forget removed devices

To fix bugs in multi-dev filesystems not handling a devt changing under them when a device gets destroyed and re-created with a different devt, we need to forget devices as they get removed.

Modify scan -u to take advantage of the kernel taking unvalidated block dev names and modify udev to invoke this scan -u on device remove.

Boris Burkov (2):
btrfs-progs: allow btrfs device scan -u on dead dev
btrfs-progs: add udev rule to forget removed device

 64-btrfs-rm.rules | 7 +++++++
 Makefile          | 2 +-
 cmds/device.c     | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 64-btrfs-rm.rules
Signature · 1 line
2.43.0