From: Kevin Wolf Date: Tue, 16 Jun 2009 10:53:25 +0000 (+0200) Subject: qcow2: Change default cluster size to 64k X-Git-Tag: v0.11.0-rc0~374 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9ccb258e285c7ab50a45b1e5760fa2bf6814b06b;p=qemu-xen-4.4-testing.git qcow2: Change default cluster size to 64k Larger cluster sizes mean less metadata. This has been discussion a few times, let's do it now. This turns 64k clusters on by default for new images. Signed-off-by: Kevin Wolf Signed-off-by: Anthony Liguori --- diff --git a/block/qcow2.c b/block/qcow2.c index c2be42ed3..14d8751a9 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1703,7 +1703,7 @@ static int qcow_create(const char *filename, QEMUOptionParameter *options) const char *backing_fmt = NULL; uint64_t sectors = 0; int flags = 0; - size_t cluster_size = 4096; + size_t cluster_size = 65536; /* Read out options */ while (options && options->name) {