Re: virt-manager: show read-only check button when add fs for lxc container

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

 



On 11/25/2013 01:51 AM, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> 
> show read-only check button when add fs for lxc container.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> ---
>  virtManager/addhardware.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
> index fb7c236..fa534cc 100644
> --- a/virtManager/addhardware.py
> +++ b/virtManager/addhardware.py
> @@ -307,6 +307,7 @@ class vmmAddHardware(vmmGObjectUI):
>          simple_store_set("fs-wrpolicy-combo", VirtualFilesystem.WRPOLICIES)
>          self.show_pair_combo("fs-type", self.conn.is_openvz())
>          self.show_check_button("fs-readonly", self.conn.is_qemu())
> +        self.show_check_button("fs-readonly", self.conn.is_lxc())
>  
>          # Smartcard widgets
>          combo = self.widget("smartcard-mode")
> 

Just use 'self.conn.is_qemu() or self.conn.is_lxc()'. The patch as is will
actually hide the readonly checkbox for qemu.

Please also use [PATCH virt-manager] as a subject prefix for virt-manager
patches. git format-patch --subject-prefix="PATCH virt-manager"

Thanks,
Cole

_______________________________________________
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