]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qcow2: Change default cluster size to 64k
authorKevin Wolf <kwolf@redhat.com>
Tue, 16 Jun 2009 10:53:25 +0000 (12:53 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Jun 2009 20:18:36 +0000 (15:18 -0500)
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 <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/qcow2.c

index c2be42ed3c1857fde1069937d15c707b1a59d7e5..14d8751a9f3530bfa27c82b4f9c5ce41ccf43c91 100644 (file)
@@ -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) {