Re: [RFC PATCH v0.8 02/14] btrfs-progs: Allow __btrfs_map_block_v2 to remove unrelated stripes

2016-10-20 Thread Qu Wenruo
On 10/20/2016 05:35 PM, Qu Wenruo wrote: At 10/20/2016 05:23 PM, Sanidhya Solanki wrote: On Mon, 17 Oct 2016 09:27:31 +0800 Qu Wenruo wrote: For READ, caller normally hopes to get what they request, other than full stripe map. In this case, we should remove unrelated stripe map, just lik

Re: [RFC PATCH v0.8 02/14] btrfs-progs: Allow __btrfs_map_block_v2 to remove unrelated stripes

2016-10-20 Thread Qu Wenruo
At 10/20/2016 05:23 PM, Sanidhya Solanki wrote: On Mon, 17 Oct 2016 09:27:31 +0800 Qu Wenruo wrote: For READ, caller normally hopes to get what they request, other than full stripe map. In this case, we should remove unrelated stripe map, just like the following case: 32K

Re: [RFC PATCH v0.8 02/14] btrfs-progs: Allow __btrfs_map_block_v2 to remove unrelated stripes

2016-10-20 Thread Sanidhya Solanki
On Mon, 17 Oct 2016 09:27:31 +0800 Qu Wenruo wrote: > For READ, caller normally hopes to get what they request, other than > full stripe map. > > In this case, we should remove unrelated stripe map, just like the > following case: >32K 96K >|<-reques

[RFC PATCH v0.8 02/14] btrfs-progs: Allow __btrfs_map_block_v2 to remove unrelated stripes

2016-10-16 Thread Qu Wenruo
For READ, caller normally hopes to get what they request, other than full stripe map. In this case, we should remove unrelated stripe map, just like the following case: 32K 96K |<-request range->| 0 64k 128K RAID0: |