Re: [PATCH 1/2] btrfs: create degraded-RAID1 chunks

2016-05-10 Thread Anand Jain
-.devs_min= 2, +.devs_min= 1, I think we should introduce another way how to determine the lower limit for the degraded mounts. We need the proper raidX constraints and use the degraded limits only if in case of the degraded mount. .tolerated_failures =

Re: [PATCH 1/2] btrfs: create degraded-RAID1 chunks

2016-05-01 Thread Anand Jain
Thanks for comments, more below.. On 04/30/2016 12:42 AM, David Sterba wrote: On Thu, Apr 28, 2016 at 11:06:19AM +0800, Anand Jain wrote: When RAID1 is degraded, newer chunks should be degraded-RAID1 chunks instead of single chunks. The bug is because the devs_min for raid1 was wrong it shoul

Re: [PATCH 1/2] btrfs: create degraded-RAID1 chunks

2016-04-29 Thread David Sterba
On Thu, Apr 28, 2016 at 11:06:19AM +0800, Anand Jain wrote: > When RAID1 is degraded, newer chunks should be degraded-RAID1 > chunks instead of single chunks. > > The bug is because the devs_min for raid1 was wrong it should > be 1, instead of 2. > > Signed-off-by: Anand Jain > --- > fs/btrfs/v

[PATCH 1/2] btrfs: create degraded-RAID1 chunks

2016-04-27 Thread Anand Jain
When RAID1 is degraded, newer chunks should be degraded-RAID1 chunks instead of single chunks. The bug is because the devs_min for raid1 was wrong it should be 1, instead of 2. Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 38 +- 1 file changed, 33 inser