https://github.com/torvalds/linux
Revision aa9ddcd4b5557102fa25695c11904f249b4dec49 authored by Josef Bacik on 02 August 2012, 14:22:20 UTC, committed by Chris Mason on 28 August 2012, 20:53:29 UTC
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>
1 parent 3627bf4
History
Tip revision: aa9ddcd4b5557102fa25695c11904f249b4dec49 authored by Josef Bacik on 02 August 2012, 14:22:20 UTC
Btrfs: do not use missing devices when showing devname
Tip revision: aa9ddcd
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 208.2 KB
Makefile -rw-r--r-- 46.0 KB
README -rw-r--r-- 17.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top