Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
return ret;
}
+
+
+char **
+virshDomainMigrateCompMethodsCompleter(vshControl *ctl,
+ const vshCmd *cmd,
+ unsigned int flags)
+{
+ const char *methods[] = {"xbzrle", "mt", NULL};
+ const char *method = NULL;
+
+ virCheckFlags(0, NULL);
+
+ if (vshCommandOptStringQuiet(ctl, cmd, "comp-methods", &method) < 0)
+ return NULL;
+
+ return virshCommaStringListComplete(method, methods);
+}
virshDomainCoreDumpFormatCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
+
+char **
+virshDomainMigrateCompMethodsCompleter(vshControl *ctl,
+ const vshCmd *cmd,
+ unsigned int flags);
},
{.name = "comp-methods",
.type = VSH_OT_STRING,
+ .completer = virshDomainMigrateCompMethodsCompleter,
.help = N_("comma separated list of compression methods to be used")
},
{.name = "comp-mt-level",