qcow2: Constant cache size in bytes
authorMax Reitz <mreitz@redhat.com>
Mon, 18 Aug 2014 20:07:31 +0000 (22:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Aug 2014 09:51:28 +0000 (11:51 +0200)
commit440ba08aea3d841996efaf6a6b88426b0d59abf4
tree43d6edcbbb02d93890e70c2ae3025ce320db7a99
parent18a7d0c56e1377f3d5fa1dc4d78a15dbab01cd83
qcow2: Constant cache size in bytes

Specifying the metadata cache sizes in clusters results in less clusters
(and much less bytes) covered for small cluster sizes and vice versa.
Using a constant byte size reduces this difference, and makes it
possible to manually specify the cache size in an easily comprehensible
unit.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
block/qcow2.h