qga: guest-exec simple stdin/stdout/stderr redirection
commita1853dca74362551ec1434b2e15acfcdd53caa99
authorYuri Pudgorodskiy <yur@virtuozzo.com>
Tue, 13 Oct 2015 15:41:23 +0000 (13 18:41 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 19 Oct 2015 23:31:54 +0000 (19 18:31 -0500)
tree2a8ca7e59cfda1867ef3b77ca8f10c70e00848e8
parentf74df9bfce6d133fc64d6b878327849ed2b89b4b
qga: guest-exec simple stdin/stdout/stderr redirection

Implemented with base64-encoded strings in qga json protocol.
Glib portable GIOChannel is used for data I/O.

Optinal stdin parameter of guest-exec command is now used as
stdin content for spawned subprocess.

If capture-output bool flag is specified, guest-exec redirects out/err
file descriptiors internally to pipes and collects subprocess
output.

Guest-exe-status is modified to return this collected data to requestor
in base64 encoding.

Signed-off-by: Yuri Pudgorodskiy <yur@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* switch from 'struct GuestIOExecData' to 'GuestIOExecData'
* s/TRUE/true/g, s/FALSE/false/g for gboolean return values
* s/inp_data/input_data/
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands.c
qga/qapi-schema.json