[libvirt] [PATCH v3 16/21] LXC from native: map block filesystems

Cédric Bosdonnat cbosdonnat at suse.com
Wed Feb 5 14:10:14 UTC 2014


---
 src/lxc/lxc_native.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c
index 1997370..9a16523 100644
--- a/src/lxc/lxc_native.c
+++ b/src/lxc/lxc_native.c
@@ -286,6 +286,10 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab)
             goto error;
     }
 
+    /* Is it a block device that needs special favor? */
+    if (STRPREFIX(fstab->src, "/dev/"))
+        type = VIR_DOMAIN_FS_TYPE_BLOCK;
+
     /* Do we have ro in options? */
     readonly = virStringArrayHasString(options, "ro");
 
-- 
1.8.5.2




More information about the libvir-list mailing list