Re: [RFC PATCH v3 08/27] qcow2: Add offset_to_sc_index()

2020-02-20 Thread Max Reitz
On 22.12.19 12:36, Alberto Garcia wrote: > For a given offset, return the subcluster number within its cluster > (i.e. with 32 subclusters per cluster it returns a number between 0 > and 31). > > Signed-off-by: Alberto Garcia > --- > block/qcow2.h | 5 + > 1 file changed, 5 insertions(+) Re

[RFC PATCH v3 08/27] qcow2: Add offset_to_sc_index()

2019-12-22 Thread Alberto Garcia
For a given offset, return the subcluster number within its cluster (i.e. with 32 subclusters per cluster it returns a number between 0 and 31). Signed-off-by: Alberto Garcia --- block/qcow2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/block/qcow2.h b/block/qcow2.h index 941330cfc9