[gnome-boxes/create-qcow2-with-compat1.1] vm-configurator: Create qcow2 with compat 1.1
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/create-qcow2-with-compat1.1] vm-configurator: Create qcow2 with compat 1.1
- Date: Tue, 9 Oct 2018 13:12:00 +0000 (UTC)
commit 4ddc03256837f8d397898a4516b1ef0056ad5aad
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Oct 9 14:36:33 2018 +0200
vm-configurator: Create qcow2 with compat 1.1
This change enables more efficient copy-on-read for sparse
images.
The "compat" property of a StorageVolTarget specifies the
compatibility level[0], therefore defining which qcow2 version
to use while creating new images.
Setting "compat" to 1.1 makes us require QEMU 1.1 or newer,
which is a very old version already. Most of popular distros
are shipping more recent versions.
[0] https://libvirt.org/formatstorage.html#StorageVolTarget
Fixes #44
src/vm-configurator.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index dcff9d5e..498739ca 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -164,6 +164,7 @@ public static StorageVol create_volume_config (string name, int64 storage) throw
volume.set_capacity (storage);
var target = new StorageVolTarget ();
target.set_format ("qcow2");
+ target.set_compat ("1.1");
var permissions = get_default_permissions ();
target.set_permissions (permissions);
volume.set_target (target);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]