Re: [PATCH] Btrfs: fix crash when mounting raid5 btrfs with missing disks

2014-06-25 Thread Liu Bo
Hi Satoru, On Wed, Jun 25, 2014 at 04:25:01PM +0900, Satoru Takeuchi wrote: > Hi Liu, > > (2014/06/24 16:39), Liu Bo wrote: > > The reproducer is > > > > $ mkfs.btrfs D1 D2 D3 -mraid5 > > $ mkfs.ext4 D2 && mkfs.ext4 D3 > > $ mount D1 /btrfs -odegraded > > Tested-by: Satoru Takeuchi > > Here is

Re: [PATCH] Btrfs: fix crash when mounting raid5 btrfs with missing disks

2014-06-25 Thread Satoru Takeuchi
Hi Liu, (2014/06/24 16:39), Liu Bo wrote: > The reproducer is > > $ mkfs.btrfs D1 D2 D3 -mraid5 > $ mkfs.ext4 D2 && mkfs.ext4 D3 > $ mount D1 /btrfs -odegraded Tested-by: Satoru Takeuchi Here is the result of the last mount. === ... mount: wrong fs type, bad option, bad superblock on /dev/vdb1

[PATCH] Btrfs: fix crash when mounting raid5 btrfs with missing disks

2014-06-24 Thread Liu Bo
The reproducer is $ mkfs.btrfs D1 D2 D3 -mraid5 $ mkfs.ext4 D2 && mkfs.ext4 D3 $ mount D1 /btrfs -odegraded --- [ 87.672992] [ cut here ] [ 87.673845] kernel BUG at fs/btrfs/raid56.c:1828! ... [ 87.673845] RIP: 0010:[] [] __raid_recover_end_io+0x4a