]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: make it possible to audit external snapshot
authorEric Blake <eblake@redhat.com>
Mon, 22 Aug 2011 19:49:10 +0000 (13:49 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 5 Sep 2011 13:03:05 +0000 (07:03 -0600)
commitc111517a888de871092a45e85eddcec6abafd94c
tree2bdaab58ac93836cdcc215d6a8ea474c002e34ba
parent7807e05d438d2c6262e3197d7affc3ccb88bd879
snapshot: make it possible to audit external snapshot

Snapshots alter the set of disk image files opened by qemu, so
they must be audited.  But they don't involve a full disk definition
structure, just the new filename.  Make the next patch easier by
refactoring the audit routines to just operate on file name.

* src/conf/domain_audit.h (virDomainAuditDisk): Update prototype.
* src/conf/domain_audit.c (virDomainAuditDisk): Act on strings,
not definition structures.
(virDomainAuditStart): Update caller.
* src/qemu/qemu_hotplug.c (qemuDomainChangeEjectableMedia)
(qemuDomainAttachPciDiskDevice, qemuDomainAttachSCSIDisk)
(qemuDomainAttachUsbMassstorageDevice)
(qemuDomainDetachPciDiskDevice, qemuDomainDetachDiskDevice):
Likewise.
src/conf/domain_audit.c
src/conf/domain_audit.h
src/qemu/qemu_hotplug.c