Re: [Devel] [PATCH RH9 4/7] dm/dm-qcow2: add find_hole

2023-08-09 Thread Andrey Zhadchenko
Hi! Sorry for not answering for so late On 7/24/23 15:54, Alexander Atanasov wrote: On 24.07.23 15:57, Andrey Zhadchenko wrote: On 7/24/23 14:20, Alexander Atanasov wrote: On 24.07.23 11:03, Konstantin Khorenko wrote: Implement find_hole() for dm-qcow2 target. Iterate over ranges with clust

Re: [Devel] [PATCH RH9 4/7] dm/dm-qcow2: add find_hole

2023-07-24 Thread Alexander Atanasov
On 24.07.23 15:57, Andrey Zhadchenko wrote: On 7/24/23 14:20, Alexander Atanasov wrote: On 24.07.23 11:03, Konstantin Khorenko wrote: Implement find_hole() for dm-qcow2 target. Iterate over ranges with cluster granularity until hole or data is found. To reduce code duplication, we should use

Re: [Devel] [PATCH RH9 4/7] dm/dm-qcow2: add find_hole

2023-07-24 Thread Andrey Zhadchenko
On 7/24/23 14:20, Alexander Atanasov wrote: On 24.07.23 11:03, Konstantin Khorenko wrote: Implement find_hole() for dm-qcow2 target. Iterate over ranges with cluster granularity until hole or data is found. To reduce code duplication, we should use already existing parse_metadata() We can pr

Re: [Devel] [PATCH RH9 4/7] dm/dm-qcow2: add find_hole

2023-07-24 Thread Alexander Atanasov
On 24.07.23 11:03, Konstantin Khorenko wrote: Implement find_hole() for dm-qcow2 target. Iterate over ranges with cluster granularity until hole or data is found. To reduce code duplication, we should use already existing parse_metadata() We can pretend that seek request is read request for metad

[Devel] [PATCH RH9 4/7] dm/dm-qcow2: add find_hole

2023-07-24 Thread Andrey Zhadchenko
Implement find_hole() for dm-qcow2 target. Iterate over ranges with cluster granularity until hole or data is found. To reduce code duplication, we should use already existing parse_metadata() We can pretend that seek request is read request for metadata purposes and than interpret parsing result i