Re: [PATCH v2] Add ability to register callback for virCommand dry run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]