Skip to content

btrfs-progs: remove full /dev scanning

Eric Sandeen linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: scan /proc/partitions not all of /dev with "-d"cmds-device.c cmds-filesystem.c+4 -41 reply
2/3btrfs-progs: don't fall back to recursive /dev scandisk-io.c utils.c+2 -121 reply
3/3btrfs-progs: remove BTRFS_SCAN_DEV and btrfs_scan_one_dirutils.c utils.h+2 -1181 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAnand Jain
1/3R-b
2/3R-b
3/3R-b

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/3] btrfs-progs: remove full /dev scanning

btrfs fileystem show and btrfs device scan today both have the "-d" option to scan everything under /dev. But we also have a mechanism to scan everything in /proc/partitions, which should always be sufficient.

If anyone knows why we'd find something deep under /dev but not in /proc/partitions, speak now or forever hold your peace...

Tested this by running through a matrix of -d, -m, or "" args for show/scan, for a 2-device fs, with and without a symlinked device, with and without a symlinked mountpoint. All output was identical.

Thanks,
-Eric