[libvirt] [PATCH] Fix auditing of disk hotunplug operations

Eric Blake eblake at redhat.com
Thu Jun 2 14:22:23 UTC 2011


On 06/02/2011 07:58 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The qemuAuditDisk calls in disk hotunplug operations were being
> passed 'ret >= 0', but the code which sets ret to 0 was not yet
> executed, and the error path had already jumped to the 'cleanup'
> label. This meant hotunplug failures were never audited, and
> hotunplug success was audited as a failure
> 
> * src/qemu/qemu_hotplug.c: Fix auditing of hotunplug
> ---
>  src/qemu/qemu_hotplug.c |    7 +++++--
>  1 files changed, 5 insertions(+), 2 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list