aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2.c
diff options
context:
space:
mode:
authorLeonid Bloch <lbloch@janustech.com>2018-09-26 19:04:41 +0300
committerKevin Wolf <kwolf@redhat.com>2018-10-01 12:51:12 +0200
commitb6a95c6d10075bb540ce50198bbe22fc0a4392c7 (patch)
tree68e2d60bacd99758dda9f4c1ab998e3d6e5b518a /block/qcow2.c
parent540b8492618ebbe98e7462bd7d31361b8cb10a05 (diff)
downloadqemu-b6a95c6d10075bb540ce50198bbe22fc0a4392c7.zip
qemu-b6a95c6d10075bb540ce50198bbe22fc0a4392c7.tar.gz
qemu-b6a95c6d10075bb540ce50198bbe22fc0a4392c7.tar.bz2
qcow2: Make sizes more humanly readable
Signed-off-by: Leonid Bloch <lbloch@janustech.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.c')
-rw-r--r--block/qcow2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow2.c b/block/qcow2.c
index c131537..d2c07ce 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -830,7 +830,7 @@ static void read_cache_sizes(BlockDriverState *bs, QemuOpts *opts,
}
} else {
if (!l2_cache_size_set) {
- *l2_cache_size = MAX(DEFAULT_L2_CACHE_BYTE_SIZE,
+ *l2_cache_size = MAX(DEFAULT_L2_CACHE_SIZE,
(uint64_t)DEFAULT_L2_CACHE_CLUSTERS
* s->cluster_size);
}