Re: [PATCH] Btrfs: fix repair code for RAID10

2012-04-28 Thread Remco Hosman
On 25 Apr 2012, at 13:42, Jan Schmidt wrote: > btrfs_map_block sets mirror_num, so that the repair code knows eventually > which device gave us the read error. For RAID10, mirror_num must be 1 or 2. > Before this fix mirror_num was incorrectly related to our stripe index. > > Signed-off-by: Jan

[PATCH] Btrfs: fix repair code for RAID10

2012-04-25 Thread Jan Schmidt
btrfs_map_block sets mirror_num, so that the repair code knows eventually which device gave us the read error. For RAID10, mirror_num must be 1 or 2. Before this fix mirror_num was incorrectly related to our stripe index. Signed-off-by: Jan Schmidt --- fs/btrfs/volumes.c |3 ++- 1 files chan