Scan the devices listed in /proc/partitions
authorGoffredo Baroncelli <kreijack@inwind.it>
Wed, 15 Jun 2011 19:55:25 +0000 (21:55 +0200)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 Oct 2011 13:19:00 +0000 (09:19 -0400)
commit0dbd99fb3e117cd5f87eda492b6b4fab1b5bea23
tree2eac9041b342d4f120e7578db697b368e20fc5b2
parent521770b7a9bef17dcbcee514da5052b3e06120d2
Scan the devices listed in /proc/partitions

During the commands:
- btrfs filesystem show
- btrfs device scan
the devices "scanned" are extracted from /proc/partitions. This
should avoid to scan devices not suitable for a btrfs filesystem like cdrom
and floppy or to scan not existant devices.
The old behavior (scan all the block devices under /dev) may be
forced passing the "--all-devices" switch.
btrfs.c
btrfs_cmds.c
man/btrfs.8.in
utils.c
utils.h