qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] qcow2: Change default cluster size to 64k


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH] qcow2: Change default cluster size to 64k
Date: Tue, 16 Jun 2009 12:53:25 +0200

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 <address@hidden>
---
 block/qcow2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/qcow2.c b/block/qcow2.c
index 8604e6a..9acbddf 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -782,7 +782,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) {
-- 
1.6.0.6





reply via email to

[Prev in Thread] Current Thread [Next in Thread]