[libvirt PATCH v3 20/21] virsh: add "nodedev-start" command
Erik Skultety
eskultet at redhat.com
Thu Jan 7 16:48:11 UTC 2021
On Thu, Dec 24, 2020 at 08:14:44AM -0600, Jonathon Jongsma wrote:
> This virsh command maps to virNodeDeviceCreate(), which starts a node
> device that has been previously defined by virNodeDeviceDefineXML().
> This is only supported for mediated devices.
>
> Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
> ---
> tools/virsh-nodedev.c | 61 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 61 insertions(+)
>
> diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c
> index 97d2a34056..861c3259f1 100644
> --- a/tools/virsh-nodedev.c
> +++ b/tools/virsh-nodedev.c
> @@ -1123,6 +1123,61 @@ cmdNodeDeviceDefine(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
> }
>
>
> +/*
> + * "nodedev-start" command
> + */
> +static const vshCmdInfo info_node_device_start[] = {
> + {.name = "help",
> + .data = N_("Start an inactive node device")
> + },
> + {.name = "desc",
> + .data = N_("Starts an inactive node device that was previously defined")
> + },
> + {.name = NULL}
> +};
> +
> +static const vshCmdOptDef opts_node_device_start[] = {
> + {.name = "name",
> + .type = VSH_OT_ALIAS,
> + .help = "device"
> + },
No alias here either.
Reviewed-by: Erik Skultety <eskultet at redhat.com>
More information about the libvir-list
mailing list