git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3627bf4
)
Btrfs: do not use missing devices when showing devname
author
Josef Bacik
<jbacik@fusionio.com>
Thu, 2 Aug 2012 14:22:20 +0000
(10:22 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:29 +0000
(16:53 -0400)
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 <jbacik@fusionio.com>
fs/btrfs/super.c
patch
|
blob
|
history
diff --cc
fs/btrfs/super.c
Simple merge