#include "virkeynametable_linux.h"
#include "virkeynametable_osx.h"
#include "virkeynametable_win32.h"
+#include "conf/storage_conf.h"
char **
virshDomainNameCompleter(vshControl *ctl,
return virshCommaStringListComplete(method, methods);
}
+
+
+char **
+virshDomainStorageFileFormatCompleter(vshControl *ctl G_GNUC_UNUSED,
+ const vshCmd *cmd G_GNUC_UNUSED,
+ unsigned int flags)
+{
+ char **ret = NULL;
+ size_t i;
+
+ virCheckFlags(0, NULL);
+
+ ret = g_new0(char *, VIR_STORAGE_FILE_LAST + 1);
+
+ for (i = 0; i < VIR_STORAGE_FILE_LAST; i++)
+ ret[i] = g_strdup(virStorageFileFormatTypeToString(i));
+
+ return ret;
+}
},
{.name = "format",
.type = VSH_OT_STRING,
+ .flags = VSH_OFLAG_NONE,
+ .completer = virshDomainStorageFileFormatCompleter,
.help = N_("format of the destination file")
},
{.name = "granularity",