Re: [PATCH 2/2]virsh: remove attach-disk '--shareable' option

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

 



On 10/15/13 05:54, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> 
> '--mode' option could set shareable tag already.
> We do not need to duplicate options.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> ---
>  tools/virsh-domain.c | 7 -------
>  tools/virsh.pod      | 3 +--
>  2 files changed, 1 insertion(+), 9 deletions(-)
> 
> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
> index ba67a69..eb5ead1 100644
> --- a/tools/virsh-domain.c
> +++ b/tools/virsh-domain.c
> @@ -311,10 +311,6 @@ static const vshCmdOptDef opts_attach_disk[] = {
>       .type = VSH_OT_STRING,
>       .help = N_("wwn of disk device")
>      },
> -    {.name = "shareable",
> -     .type = VSH_OT_BOOL,
> -     .help = N_("shareable between domains")
> -    },

We can't remove this whole part. The correct approach is to use correct
flags to hide it.

>      {.name = "rawio",
>       .type = VSH_OT_BOOL,
>       .help = N_("needs rawio capability")
> @@ -625,9 +621,6 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
>      if (wwn)
>          virBufferAsprintf(&buf, "  <wwn>%s</wwn>\n", wwn);
>  
> -    if (vshCommandOptBool(cmd, "shareable"))
> -        virBufferAddLit(&buf, "  <shareable/>\n");
> -

NACK to this part. As DanPB mentioned, we need to remove the
documentation, to discourage use of it, but we can't remove the argument
as it would break backwards compatibility.

>      if (straddr) {
>          if (str2DiskAddress(straddr, &diskAddr) != 0) {
>              vshError(ctl, _("Invalid address."));

Peter


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]