Re: [PATCH 2/5] btrfs: Do per-chunk check for mount time check

2015-09-25 Thread Anand Jain
On 09/21/2015 10:10 AM, Qu Wenruo wrote: Now use the btrfs_check_degraded() to do mount time degraded check. With this patch, now we can mount with the following case: # mkfs.btrfs -f -m raid1 -d single /dev/sdb /dev/sdc # wipefs -a /dev/sdc # mount /dev/sdb /mnt/btrfs -o degraded As

[PATCH 2/5] btrfs: Do per-chunk check for mount time check

2015-09-20 Thread Qu Wenruo
Now use the btrfs_check_degraded() to do mount time degraded check. With this patch, now we can mount with the following case: # mkfs.btrfs -f -m raid1 -d single /dev/sdb /dev/sdc # wipefs -a /dev/sdc # mount /dev/sdb /mnt/btrfs -o degraded As the single data chunk is only in sdb, so it's OK