aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-06-16 12:53:25 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:36 -0500
commit9ccb258e285c7ab50a45b1e5760fa2bf6814b06b (patch)
treec870163d3dfa80e007ff84b23b0aa5a60ff5b33a /block/qcow2.c
parent198a0039c5fca224a77e9761e2350dd9cc102ad0 (diff)
downloadqemu-9ccb258e285c7ab50a45b1e5760fa2bf6814b06b.zip
qemu-9ccb258e285c7ab50a45b1e5760fa2bf6814b06b.tar.gz
qemu-9ccb258e285c7ab50a45b1e5760fa2bf6814b06b.tar.bz2
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 <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.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 c2be42e..14d8751 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) {