[libvirt] [PATCH] Add virshAllocpagesPagesizeCompleter to opts_freepages.

Roland Schulz posted 1 patch 5 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180524131112.762-1-schullzroll@gmail.com
Test syntax-check passed
tools/virsh-host.c | 1 +
1 file changed, 1 insertion(+)
[libvirt] [PATCH] Add virshAllocpagesPagesizeCompleter to opts_freepages.
Posted by Roland Schulz 5 years, 11 months ago
Signed-off-by: Roland Schulz <schullzroll@gmail.com>
---
For the time being virshAllocpagesPagesizeCompleter can be used with
other commands that use --pagesize option.

 tools/virsh-host.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virsh-host.c b/tools/virsh-host.c
index dfe58de30..991c0f50a 100644
--- a/tools/virsh-host.c
+++ b/tools/virsh-host.c
@@ -280,6 +280,7 @@ static const vshCmdOptDef opts_freepages[] = {
     },
     {.name = "pagesize",
      .type = VSH_OT_INT,
+     .completer = virshAllocpagesPagesizeCompleter,
      .help = N_("page size (in kibibytes)")
     },
     {.name = "all",
-- 
2.17.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] Add virshAllocpagesPagesizeCompleter to opts_freepages.
Posted by Michal Privoznik 5 years, 11 months ago
On 05/24/2018 03:11 PM, Roland Schulz wrote:
> Signed-off-by: Roland Schulz <schullzroll@gmail.com>
> ---
> For the time being virshAllocpagesPagesizeCompleter can be used with
> other commands that use --pagesize option.
> 
>  tools/virsh-host.c | 1 +
>  1 file changed, 1 insertion(+)

ACKed and pushed.

Michal

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list