[PATCH v2 16/18] LXC from native: map block filesystems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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 98a9e12..cdf7c7c 100644
--- a/src/lxc/lxc_native.c
+++ b/src/lxc/lxc_native.c
@@ -280,6 +280,10 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab)
     } else if (VIR_STRDUP(src, fstab->src) < 0)
         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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]