From: Josef Bacik Date: Thu, 2 Aug 2012 14:22:20 +0000 (-0400) Subject: Btrfs: do not use missing devices when showing devname X-Git-Tag: v3.6-rc4~6^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9ddcd4b5557102fa25695c11904f249b4dec49;p=pandora-kernel.git 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 --- Reading git-diff-tree failed