Skip to contentSkip to conversation

qcow2: Change default cluster size to 64k

PATCH New Kevin Wolf 1 participant 1 message Jun 16, 2009 Block layer

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 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.

---
 block/qcow2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
block/qcow2.c +1 -1
index 8604e6a..9acbddf 100644
@@ -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) {
Signature · 1 line
1.6.0.6