[libvirt] [PATCH 9/9] Add 'lxc-enter-namespace' command to virsh

Eric Blake eblake at redhat.com
Tue Jan 15 00:42:18 UTC 2013


On 12/21/2012 10:08 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Add a 'lxc-enter-namespace' command which accepts a domain name
> and then a command + args to run, attached to the container
> 
> eg
> 
>   virsh -c lxc:/// lxc-enter-namespace demo -- /bin/ps -auxf
> 

> +static const vshCmdOptDef opts_lxc_enter_namespace[] = {
> +    {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
> +    {"timeout", VSH_OT_INT, VSH_OFLAG_REQ_OPT, N_("timeout seconds. must be positive.")},
> +    {"async", VSH_OT_BOOL, 0, N_("execute namespace without waiting for timeout")},
> +    {"block", VSH_OT_BOOL, 0, N_("execute namespace without timeout")},

Oh, and I don't see timeout, async, or block actually used in the
implementation; did you mean to wire them up?  Waiting for v2.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130114/5562e35c/attachment-0001.sig>


More information about the libvir-list mailing list