Re: [PATCH 2/5]virsh: introduce flags VSH_OFLAG_IGNORE

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

 



On 10/18/2013 07:42 AM, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> 
> If some command option should be phased out,
> we need to hide it. But for backwards compatibility,
> we had to keep those obsolete codes.
> With this flag, we could keep most of the old codes
> and let tools like virsh know don't show it.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> ---
>  tools/virsh.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/virsh.h b/tools/virsh.h
> index f978d94..029ae9f 100644
> --- a/tools/virsh.h
> +++ b/tools/virsh.h
> @@ -136,6 +136,7 @@ enum {
>      VSH_OFLAG_REQ      = (1 << 0), /* option required */
>      VSH_OFLAG_EMPTY_OK = (1 << 1), /* empty string option allowed */
>      VSH_OFLAG_REQ_OPT  = (1 << 2), /* --optionname required */
> +    VSH_OFLAG_IGNORE   = (1 << 3), /* keep this option but don't show it to users */

I'm not convinced.  I think the VSH_OT_ALIAS should instead be enhanced
to do what we want, rather than adding yet another mechanism for hiding
options.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]