[libvirt] [PATCH 5/7] virsh: rename iothreadsinfo to iothreadinfo

John Ferlan jferlan at redhat.com
Wed Mar 25 21:22:26 UTC 2015



On 03/25/2015 02:39 PM, Ján Tomko wrote:
> The plural seems unnecessary.
> ---
>  tools/virsh-domain.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 

You would need to adjust virsh.pod too.


> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
> index c8e0233..afd92b1 100644
> --- a/tools/virsh-domain.c
> +++ b/tools/virsh-domain.c
> @@ -6792,7 +6792,7 @@ cmdSetvcpus(vshControl *ctl, const vshCmd *cmd)
>  /*
>   * "iothreadsinfo" command
>   */
> -static const vshCmdInfo info_iothreads[] = {
> +static const vshCmdInfo info_iothreadinfo[] = {
>      {.name = "help",
>       .data = N_("view domain IOThreads")
>      },
> @@ -6801,7 +6801,7 @@ static const vshCmdInfo info_iothreads[] = {
>      },
>      {.name = NULL}
>  };
> -static const vshCmdOptDef opts_iothreads[] = {
> +static const vshCmdOptDef opts_iothreadinfo[] = {
>      {.name = "domain",
>       .type = VSH_OT_DATA,
>       .flags = VSH_OFLAG_REQ,
> @@ -6823,7 +6823,7 @@ static const vshCmdOptDef opts_iothreads[] = {
>  };
>  
>  static bool
> -cmdIOThreadsInfo(vshControl *ctl, const vshCmd *cmd)
> +cmdIOThreadInfo(vshControl *ctl, const vshCmd *cmd)
>  {
>      virDomainPtr dom;
>      bool config = vshCommandOptBool(cmd, "config");
> @@ -12891,10 +12891,10 @@ const vshCmdDef domManagementCmds[] = {
>       .info = info_inject_nmi,
>       .flags = 0
>      },
> -    {.name = "iothreadsinfo",
> -     .handler = cmdIOThreadsInfo,
> -     .opts = opts_iothreads,
> -     .info = info_iothreads,
> +    {.name = "iothreadinfo",
> +     .handler = cmdIOThreadInfo,
> +     .opts = opts_iothreadinfo,
> +     .info = info_iothreadinfo,
>       .flags = 0
>      },
>      {.name = "iothreadpin",
> 




More information about the libvir-list mailing list