path: root/disk-io.h
diff options
authorAnand Jain <>2014-10-15 08:45:11 +0800
committerDavid Sterba <>2014-10-16 12:02:00 +0200
commit6345bbd5b4f41cd5f4bf090b9f17e6c9c9afcf62 (patch)
treef0a17b82ac06fe0777c4483effb430166c32c581 /disk-io.h
parentd6d44779f5df4ed04a6bdac6330a8e91740a2f7f (diff)
btrfs-progs: mkfs should be consistent in calling register device
When we have one device we don't call register device. (in fact not mandatory, but to make it consistent) And when we have more than one we call register device. reproducer: Nothing in the kernel device list cat /proc/fs/btrfs/devlist | egrep fsid | wc -l 0 mkfs.btrfs will automatically call register device when devices is more than 1. mkfs.btrfs -f /dev/sdb /dev/sdc cat /proc/fs/btrfs/devlist | egrep fsid | wc -l 1 But it does not when there is only one device mkfs.btrfs -f /dev/sdb cat /proc/fs/btrfs/devlist | egrep fsid | wc -l 0 Signed-off-by: Anand Jain <> Signed-off-by: David Sterba <>
Diffstat (limited to 'disk-io.h')
0 files changed, 0 insertions, 0 deletions