[virt-tools-list] [virt-manager PATCH] add RAM filesystems browse support for lxc container

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Nov 27 05:52:44 UTC 2013


From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>

LXC container could use in-memory filesystem,
which do not have source section.
Currently, virt-manager will complain if
dev.source is null.
This patch will fix this issue.

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 virtManager/details.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 6537466..d55f1cb 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -3304,7 +3304,11 @@ class vmmDetails(vmmGObjectUI):
 
         self.widget("fs-wrpolicy").set_text(dev.wrpolicy or _("Default"))
 
-        self.widget("fs-source").set_text(dev.source)
+        if dev.source:
+            self.widget("fs-source").set_text(dev.source)
+        else:
+            self.widget("fs-source").set_text("RAM")
+
         self.widget("fs-target").set_text(dev.target)
         if dev.readonly:
             self.widget("fs-readonly").set_text("Yes")
-- 
1.8.2.1




More information about the virt-tools-list mailing list