[libvirt] [sandbox PATCH 3/4] qemu: mount all host-images as ext4

Cédric Bosdonnat cbosdonnat at suse.com
Mon Jun 15 13:43:45 UTC 2015


To avoid troubles when mounting ext4 images, hard-code ext4 as mount
format instead of ext3.
---
 libvirt-sandbox/libvirt-sandbox-builder-machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-sandbox/libvirt-sandbox-builder-machine.c b/libvirt-sandbox/libvirt-sandbox-builder-machine.c
index c446447..e342ba1 100644
--- a/libvirt-sandbox/libvirt-sandbox-builder-machine.c
+++ b/libvirt-sandbox/libvirt-sandbox-builder-machine.c
@@ -304,7 +304,7 @@ static gboolean gvir_sandbox_builder_machine_write_mount_cfg(GVirSandboxConfig *
             options = g_strdup("trans=virtio,version=9p2000.u");
         } else if (GVIR_SANDBOX_IS_CONFIG_MOUNT_HOST_IMAGE(mconfig)) {
             source = g_strdup_printf("/dev/vd%c", (char)('a' + nHostImage++));
-            fstype = "ext3";
+            fstype = "ext4";
             options = g_strdup("");
         } else if (GVIR_SANDBOX_IS_CONFIG_MOUNT_GUEST_BIND(mconfig)) {
             GVirSandboxConfigMountFile *mfile = GVIR_SANDBOX_CONFIG_MOUNT_FILE(mconfig);
-- 
2.1.4




More information about the libvir-list mailing list