[virt-manager] [PATCHv2 2/2] Set default Filesystem type for LXC to "Mount"

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

 



---
 tests/cli-test-xml/compare/virt-install-fs-default.xml | 2 +-
 virtinst/devicefilesystem.py                           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/cli-test-xml/compare/virt-install-fs-default.xml b/tests/cli-test-xml/compare/virt-install-fs-default.xml
index 201924a..feccba5 100644
--- a/tests/cli-test-xml/compare/virt-install-fs-default.xml
+++ b/tests/cli-test-xml/compare/virt-install-fs-default.xml
@@ -13,7 +13,7 @@
   </features>
   <devices>
     <emulator>/usr/libexec/libvirt_lxc</emulator>
-    <filesystem>
+    <filesystem type="mount" accessmode="mapped">
       <source dir="/source"/>
       <target dir="/"/>
     </filesystem>
diff --git a/virtinst/devicefilesystem.py b/virtinst/devicefilesystem.py
index fee9e87..5759024 100644
--- a/virtinst/devicefilesystem.py
+++ b/virtinst/devicefilesystem.py
@@ -133,8 +133,8 @@ class VirtualFilesystem(VirtualDevice):
     def set_defaults(self, guest):
         ignore = guest
 
-        if self.conn.is_qemu() or self.conn.is_test():
-            # type=mount is the libvirt qemu default. But hardcode it
+        if self.conn.is_qemu() or self.conn.is_lxc() or self.conn.is_test():
+            # type=mount is the libvirt default. But hardcode it
             # here since we need it for the accessmode check
             if self.type is None or self.type == self.TYPE_DEFAULT:
                 self.type = self.TYPE_MOUNT
-- 
2.9.4

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux