mirror of https://github.com/xqemu/xqemu.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 <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
198a0039c5
commit
9ccb258e28
|
@ -1703,7 +1703,7 @@ static int qcow_create(const char *filename, QEMUOptionParameter *options)
|
||||||
const char *backing_fmt = NULL;
|
const char *backing_fmt = NULL;
|
||||||
uint64_t sectors = 0;
|
uint64_t sectors = 0;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
size_t cluster_size = 4096;
|
size_t cluster_size = 65536;
|
||||||
|
|
||||||
/* Read out options */
|
/* Read out options */
|
||||||
while (options && options->name) {
|
while (options && options->name) {
|
||||||
|
|
Loading…
Reference in New Issue