提交 bbd09adb 编写于 作者: M Michal Privoznik

virsh-volume.c: Switch to c99 initialization of vshCmdInfo

上级 53b57481
...@@ -105,9 +105,13 @@ vshCommandOptVolBy(vshControl *ctl, const vshCmd *cmd, ...@@ -105,9 +105,13 @@ vshCommandOptVolBy(vshControl *ctl, const vshCmd *cmd,
* "vol-create-as" command * "vol-create-as" command
*/ */
static const vshCmdInfo info_vol_create_as[] = { static const vshCmdInfo info_vol_create_as[] = {
{"help", N_("create a volume from a set of args")}, {.name = "help",
{"desc", N_("Create a vol.")}, .data = N_("create a volume from a set of args")
{NULL, NULL} },
{.name = "desc",
.data = N_("Create a vol.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_create_as[] = { static const vshCmdOptDef opts_vol_create_as[] = {
...@@ -306,9 +310,13 @@ cmdVolCreateAs(vshControl *ctl, const vshCmd *cmd) ...@@ -306,9 +310,13 @@ cmdVolCreateAs(vshControl *ctl, const vshCmd *cmd)
* "vol-create" command * "vol-create" command
*/ */
static const vshCmdInfo info_vol_create[] = { static const vshCmdInfo info_vol_create[] = {
{"help", N_("create a vol from an XML file")}, {.name = "help",
{"desc", N_("Create a vol.")}, .data = N_("create a vol from an XML file")
{NULL, NULL} },
{.name = "desc",
.data = N_("Create a vol.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_create[] = { static const vshCmdOptDef opts_vol_create[] = {
...@@ -373,9 +381,13 @@ cleanup: ...@@ -373,9 +381,13 @@ cleanup:
* "vol-create-from" command * "vol-create-from" command
*/ */
static const vshCmdInfo info_vol_create_from[] = { static const vshCmdInfo info_vol_create_from[] = {
{"help", N_("create a vol, using another volume as input")}, {.name = "help",
{"desc", N_("Create a vol from an existing volume.")}, .data = N_("create a vol, using another volume as input")
{NULL, NULL} },
{.name = "desc",
.data = N_("Create a vol from an existing volume.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_create_from[] = { static const vshCmdOptDef opts_vol_create_from[] = {
...@@ -489,9 +501,13 @@ cleanup: ...@@ -489,9 +501,13 @@ cleanup:
* "vol-clone" command * "vol-clone" command
*/ */
static const vshCmdInfo info_vol_clone[] = { static const vshCmdInfo info_vol_clone[] = {
{"help", N_("clone a volume.")}, {.name = "help",
{"desc", N_("Clone an existing volume.")}, .data = N_("clone a volume.")
{NULL, NULL} },
{.name = "desc",
.data = N_("Clone an existing volume.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_clone[] = { static const vshCmdOptDef opts_vol_clone[] = {
...@@ -583,9 +599,13 @@ cleanup: ...@@ -583,9 +599,13 @@ cleanup:
* "vol-upload" command * "vol-upload" command
*/ */
static const vshCmdInfo info_vol_upload[] = { static const vshCmdInfo info_vol_upload[] = {
{"help", N_("upload a file into a volume")}, {.name = "help",
{"desc", N_("Upload a file into a volume")}, .data = N_("upload a file into a volume")
{NULL, NULL} },
{.name = "desc",
.data = N_("Upload a file into a volume")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_upload[] = { static const vshCmdOptDef opts_vol_upload[] = {
...@@ -696,9 +716,13 @@ cleanup: ...@@ -696,9 +716,13 @@ cleanup:
* "vol-download" command * "vol-download" command
*/ */
static const vshCmdInfo info_vol_download[] = { static const vshCmdInfo info_vol_download[] = {
{"help", N_("Download a volume to a file")}, {.name = "help",
{"desc", N_("Download a volume to a file")}, .data = N_("Download a volume to a file")
{NULL, NULL} },
{.name = "desc",
.data = N_("Download a volume to a file")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_download[] = { static const vshCmdOptDef opts_vol_download[] = {
...@@ -807,9 +831,13 @@ cleanup: ...@@ -807,9 +831,13 @@ cleanup:
* "vol-delete" command * "vol-delete" command
*/ */
static const vshCmdInfo info_vol_delete[] = { static const vshCmdInfo info_vol_delete[] = {
{"help", N_("delete a vol")}, {.name = "help",
{"desc", N_("Delete a given vol.")}, .data = N_("delete a vol")
{NULL, NULL} },
{.name = "desc",
.data = N_("Delete a given vol.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_delete[] = { static const vshCmdOptDef opts_vol_delete[] = {
...@@ -852,9 +880,13 @@ cmdVolDelete(vshControl *ctl, const vshCmd *cmd) ...@@ -852,9 +880,13 @@ cmdVolDelete(vshControl *ctl, const vshCmd *cmd)
* "vol-wipe" command * "vol-wipe" command
*/ */
static const vshCmdInfo info_vol_wipe[] = { static const vshCmdInfo info_vol_wipe[] = {
{"help", N_("wipe a vol")}, {.name = "help",
{"desc", N_("Ensure data previously on a volume is not accessible to future reads")}, .data = N_("wipe a vol")
{NULL, NULL} },
{.name = "desc",
.data = N_("Ensure data previously on a volume is not accessible to future reads")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_wipe[] = { static const vshCmdOptDef opts_vol_wipe[] = {
...@@ -926,9 +958,13 @@ out: ...@@ -926,9 +958,13 @@ out:
* "vol-info" command * "vol-info" command
*/ */
static const vshCmdInfo info_vol_info[] = { static const vshCmdInfo info_vol_info[] = {
{"help", N_("storage vol information")}, {.name = "help",
{"desc", N_("Returns basic information about the storage vol.")}, .data = N_("storage vol information")
{NULL, NULL} },
{.name = "desc",
.data = N_("Returns basic information about the storage vol.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_info[] = { static const vshCmdOptDef opts_vol_info[] = {
...@@ -998,9 +1034,13 @@ cmdVolInfo(vshControl *ctl, const vshCmd *cmd) ...@@ -998,9 +1034,13 @@ cmdVolInfo(vshControl *ctl, const vshCmd *cmd)
* "vol-resize" command * "vol-resize" command
*/ */
static const vshCmdInfo info_vol_resize[] = { static const vshCmdInfo info_vol_resize[] = {
{"help", N_("resize a vol")}, {.name = "help",
{"desc", N_("Resizes a storage volume.")}, .data = N_("resize a vol")
{NULL, NULL} },
{.name = "desc",
.data = N_("Resizes a storage volume.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_resize[] = { static const vshCmdOptDef opts_vol_resize[] = {
...@@ -1101,9 +1141,13 @@ cleanup: ...@@ -1101,9 +1141,13 @@ cleanup:
* "vol-dumpxml" command * "vol-dumpxml" command
*/ */
static const vshCmdInfo info_vol_dumpxml[] = { static const vshCmdInfo info_vol_dumpxml[] = {
{"help", N_("vol information in XML")}, {.name = "help",
{"desc", N_("Output the vol information as an XML dump to stdout.")}, .data = N_("vol information in XML")
{NULL, NULL} },
{.name = "desc",
.data = N_("Output the vol information as an XML dump to stdout.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_dumpxml[] = { static const vshCmdOptDef opts_vol_dumpxml[] = {
...@@ -1271,9 +1315,13 @@ cleanup: ...@@ -1271,9 +1315,13 @@ cleanup:
* "vol-list" command * "vol-list" command
*/ */
static const vshCmdInfo info_vol_list[] = { static const vshCmdInfo info_vol_list[] = {
{"help", N_("list vols")}, {.name = "help",
{"desc", N_("Returns list of vols by pool.")}, .data = N_("list vols")
{NULL, NULL} },
{.name = "desc",
.data = N_("Returns list of vols by pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_list[] = { static const vshCmdOptDef opts_vol_list[] = {
...@@ -1548,9 +1596,13 @@ cleanup: ...@@ -1548,9 +1596,13 @@ cleanup:
* "vol-name" command * "vol-name" command
*/ */
static const vshCmdInfo info_vol_name[] = { static const vshCmdInfo info_vol_name[] = {
{"help", N_("returns the volume name for a given volume key or path")}, {.name = "help",
{"desc", ""}, .data = N_("returns the volume name for a given volume key or path")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_name[] = { static const vshCmdOptDef opts_vol_name[] = {
...@@ -1580,9 +1632,13 @@ cmdVolName(vshControl *ctl, const vshCmd *cmd) ...@@ -1580,9 +1632,13 @@ cmdVolName(vshControl *ctl, const vshCmd *cmd)
* "vol-pool" command * "vol-pool" command
*/ */
static const vshCmdInfo info_vol_pool[] = { static const vshCmdInfo info_vol_pool[] = {
{"help", N_("returns the storage pool for a given volume key or path")}, {.name = "help",
{"desc", ""}, .data = N_("returns the storage pool for a given volume key or path")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_pool[] = { static const vshCmdOptDef opts_vol_pool[] = {
...@@ -1640,9 +1696,13 @@ cmdVolPool(vshControl *ctl, const vshCmd *cmd) ...@@ -1640,9 +1696,13 @@ cmdVolPool(vshControl *ctl, const vshCmd *cmd)
* "vol-key" command * "vol-key" command
*/ */
static const vshCmdInfo info_vol_key[] = { static const vshCmdInfo info_vol_key[] = {
{"help", N_("returns the volume key for a given volume name or path")}, {.name = "help",
{"desc", ""}, .data = N_("returns the volume key for a given volume name or path")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_key[] = { static const vshCmdOptDef opts_vol_key[] = {
...@@ -1676,9 +1736,13 @@ cmdVolKey(vshControl *ctl, const vshCmd *cmd) ...@@ -1676,9 +1736,13 @@ cmdVolKey(vshControl *ctl, const vshCmd *cmd)
* "vol-path" command * "vol-path" command
*/ */
static const vshCmdInfo info_vol_path[] = { static const vshCmdInfo info_vol_path[] = {
{"help", N_("returns the volume path for a given volume name or key")}, {.name = "help",
{"desc", ""}, .data = N_("returns the volume path for a given volume name or key")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_vol_path[] = { static const vshCmdOptDef opts_vol_path[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册