[libvirt] [PATCH v2] Add ability to register callback for virCommand dry run
Ján Tomko
jtomko at redhat.com
Wed Mar 19 09:08:16 UTC 2014
On 03/18/2014 04:00 PM, Daniel P. Berrange wrote:
> To allow for fault injection of the virCommand dry run,
> add the ability to register a callback. The callback will
> be passed the argv, env and stdin buffer and is expected
> to return the exit status and optionally fill stdout and
> stderr buffers.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/util/vircommand.c | 52 ++++++++++++++++++++++++++++++++----------
> src/util/vircommand.h | 1 +
> src/util/vircommandpriv.h | 13 ++++++++++-
> tests/virkmodtest.c | 8 +++----
> tests/virnetdevbandwidthtest.c | 3 ++-
> 5 files changed, 59 insertions(+), 18 deletions(-)
ACK
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140319/4e15b4d0/attachment-0001.sig>
More information about the libvir-list
mailing list