On 04/23/2013 04:46 AM, Stefan Hajnoczi wrote: > The first sector is included in nb_sectors. Mathematically the range > is defined as [sector_num, sector_num + nb_sectors). Notice the > half-open interval, sector_num + nb_sectors is excluded. The last > included sector is sector_num + nb_sectors - 1. > > You can look at qcow2's implementation, especially > count_contiguous_clusters() to double-check.
Okay, thanks for you explanation. I'll update it in v4. Yuan