diff options
author | Josef Bacik <josef@redhat.com> | 2012-06-05 14:13:12 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-06-14 21:30:37 -0400 |
commit | 9c5085c147989d48dfe74194b48affc23f376650 (patch) | |
tree | e0031a23f284d13b6adc3d14f299b2c9aa9f191f /block | |
parent | 606686eeac4550d2212bf3d621a810407ef5e9bf (diff) | |
download | linux-9c5085c147989d48dfe74194b48affc23f376650.tar.gz linux-9c5085c147989d48dfe74194b48affc23f376650.tar.bz2 linux-9c5085c147989d48dfe74194b48affc23f376650.zip |
Btrfs: implement ->show_devname
Because btrfs can remove the device that was mounted we need to have a
->show_devname so that in this case we can print out some other device in
the file system to /proc/mount. So if there are multiple devices in a btrfs
file system we will just print the device with the lowest devid that we can
find. This will make everything consistent and deal with device removal
properly. The drawback is if you mount with a device that is higher than
the lowest devicd it won't show up as the mounted device in /proc/mounts,
but this is a small price to pay. This was inspired by Miao Xie's patch.
Thanks,
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions