qcow2: Add offset_into_subcluster() and size_to_subclusters()
authorAlberto Garcia <berto@igalia.com>
Fri, 10 Jul 2020 16:12:53 +0000 (18:12 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 25 Aug 2020 06:33:20 +0000 (08:33 +0200)
commit3e71981592a9f9c52833887f5675b3154d23eec8
tree42ef439eb172a3e6f1fe17857c7323894257d92c
parenta53e8b7202dd941c619a57a640389560214d1f70
qcow2: Add offset_into_subcluster() and size_to_subclusters()

Like offset_into_cluster() and size_to_clusters(), but for
subclusters.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <3cc2390dcdef3d234d47c741b708bd8734490862.1594396418.git.berto@igalia.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.h