[virt-tools-list] [PATCH virt-manager v2] add RAM filesystems browse support for lxc container
Cole Robinson
crobinso at redhat.com
Mon Dec 2 18:47:27 UTC 2013
On 12/01/2013 08:48 PM, Chen Hanxiao wrote:
> 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>
> ---
> v2: optimize code according to cole's opinion.
>
> virtManager/details.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/virtManager/details.py b/virtManager/details.py
> index 6537466..88b8d09 100644
> --- a/virtManager/details.py
> +++ b/virtManager/details.py
> @@ -3304,7 +3304,7 @@ class vmmDetails(vmmGObjectUI):
>
> self.widget("fs-wrpolicy").set_text(dev.wrpolicy or _("Default"))
>
> - self.widget("fs-source").set_text(dev.source)
> + self.widget("fs-source").set_text(dev.source or _("RAM"))
> self.widget("fs-target").set_text(dev.target)
> if dev.readonly:
> self.widget("fs-readonly").set_text("Yes")
>
Thanks, pushed now.
- Cole
More information about the virt-tools-list
mailing list