diff options
| author | Josef Bacik <[email protected]> | 2012-08-02 14:22:20 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2012-08-28 20:53:29 +0000 |
| commit | aa9ddcd4b5557102fa25695c11904f249b4dec49 (patch) | |
| tree | 5ed695e48b6d32fd45e582496edc1b3da6f3b5f0 /lib/dynamic_debug.c | |
| parent | Btrfs: fix that error value is changed by mistake (diff) | |
| download | kernel-aa9ddcd4b5557102fa25695c11904f249b4dec49.tar.gz kernel-aa9ddcd4b5557102fa25695c11904f249b4dec49.zip | |
Btrfs: do not use missing devices when showing devname
If you do the following
mkfs.btrfs /dev/sdb /dev/sdc
rmmod btrfs
dd if=/dev/zero of=/dev/sdb bs=1M count=1
mount -o degraded /dev/sdc /mnt/btrfs-test
the box will panic trying to deref the name for the missing dev since it is
the lower numbered devid. So fix show_devname to not use missing devices.
Thanks,
Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
