libvirt/src
Guannan Ren 011eeb4130 snapshot: fix double free of qemuImgBinary
Regression introduced in commit 3881a470, due to an improper rebase
of a cleanup written beforehand but only applied after a rebased of
a refactoring that created a new function in commit 25fb3ef.

Also avoids passing NULL to printf %s.

* src/qemu/qemu_driver.c: In qemuDomainSnapshotForEachQcow2()
it free up the memory of qemu_driver->qemuImgBinary in the
cleanup tag which leads to the garbage value of qemuImgBinary
in qemu_driver struct and libvirtd crash when running
"virsh snapshot-create" command a second time.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-09-13 09:11:11 -06:00
..
conf xml: Change virtual file names of xml documents parsed in memory 2011-09-08 17:20:33 +01:00
cpu maint: simplify lots of libxml2 clients 2011-08-19 09:13:55 -06:00
esx esx: Fix managed object lookup with optional occurrence 2011-09-08 10:36:48 +02:00
hyperv hyperv: Add basic driver for Microsoft Hyper-V 2011-08-26 17:52:55 +02:00
interface
libxl libxl: avoid a dereference of a null pointer 2011-09-08 11:00:30 +01:00
locking Fix incorrect path length check in sanlock lockspace setup 2011-08-31 11:07:31 +01:00
lxc lxc: do not require 'ifconfig' or 'ipconfig' in container 2011-09-01 20:11:50 -06:00
network Introduce functions for checking whether a pidfile is valid 2011-08-12 20:37:00 +01:00
node_device Don't treat pci_system_init failure as fatal if no PCI bus is present 2011-09-08 11:36:18 +01:00
nwfilter nwfilter: tolerate disappearing interfaces while instantiating filter 2011-08-11 06:56:50 -04:00
openvz openvz: Allow to undefine a running domain 2011-08-19 21:48:47 +08:00
phyp
qemu snapshot: fix double free of qemuImgBinary 2011-09-13 09:11:11 -06:00
remote latency: Wire up the remote protocol 2011-09-06 12:02:51 +08:00
rpc virnetsocket: Pass KRB5CCNAME env variable 2011-09-09 15:59:26 +02:00
secret
security selinux: Detect virt_use_nfs boolean set 2011-09-09 09:32:59 +02:00
storage Check for source conflicts in storage pools 2011-09-05 15:52:03 +08:00
test Revert "test: Cleanup improper VIR_ERR_NO_SUPPORT use" 2011-09-01 17:37:11 +08:00
uml snapshot: also support disks by path 2011-09-05 07:03:04 -06:00
util Threadpool: Initialize new dynamic workers 2011-09-07 14:23:26 +02:00
vbox snapshot: add flag for requesting disk snapshot 2011-09-05 07:03:04 -06:00
vmware vmware: Allow to undefine a running domain 2011-08-19 21:52:12 +08:00
vmx Rename virDomainControllerModel to virDomainControllerModelSCSI 2011-09-02 23:22:56 +08:00
xen Fix URL-escaping for domainDefine 2011-09-09 15:18:39 +08:00
xenapi vbox, xenapi: add virDomainUndefineFlags 2011-08-12 07:44:54 -06:00
xenxs snapshot: reject transient disks where code is not ready 2011-09-05 07:03:04 -06:00
.gitignore
datatypes.c
datatypes.h
driver.c
driver.h latency: Define the internal driver callback 2011-09-06 12:02:51 +08:00
fdstream.c fdstream: drop delete argument 2011-08-02 14:53:43 -06:00
fdstream.h fdstream: drop delete argument 2011-08-02 14:53:43 -06:00
gnutls_1_0_compat.h Fix detection of GnuTLS 1.x.y 2011-08-03 19:22:29 +02:00
internal.h
libvirt_bridge.syms
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_internal.h qemu: Migration job on source daemon 2011-07-27 08:45:10 -06:00
libvirt_linux.syms
libvirt_macvtap.syms
libvirt_network.syms
libvirt_nwfilter.syms
libvirt_private.syms snapshot: also support disks by path 2011-09-05 07:03:04 -06:00
libvirt_public.syms snapshot: new APIs for inspecting snapshot object 2011-09-08 13:15:13 +01:00
libvirt_qemu.syms
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-qemu.c
libvirt.c snapshot: new APIs for inspecting snapshot object 2011-09-08 13:15:13 +01:00
Makefile.am storage: Add fs pool formatting 2011-09-02 21:16:58 +08:00
nodeinfo.c nodeinfo: Fix incorrect error codes 2011-09-01 17:35:23 +08:00
nodeinfo.h
qemu_protocol-structs
README hyperv: Add basic documentation 2011-08-26 17:52:55 +02:00
remote_protocol-structs latency: fix make check for remote protocol structs and numbers 2011-09-06 15:11:44 +08:00
virnetprotocol-structs

       libvirt library code README
       ===========================

The directory provides the bulk of the libvirt codebase. Everything
except for the libvirtd daemon and client tools. The build uses a
large number of libtool convenience libraries - one for each child
directory, and then links them together for the final libvirt.so,
although some bits get linked directly to libvirtd daemon instead.

The files directly in this directory are supporting the public API
entry points & data structures.

There are two core shared modules to be aware of:

 * util/  - a collection of shared APIs that can be used by any
            code. This directory is always in the include path
            for all things built

 * conf/  - APIs for parsing / manipulating all the official XML
            files used by the public API. This directory is only
            in the include path for driver implementation modules

 * vmx/   - VMware VMX config handling (used by esx/ and vmware/)


Then there are the hypervisor implementations:

 * esx/          - VMware ESX and GSX support using vSphere API over SOAP
 * hyperv/       - Microsoft Hyper-V support using WinRM
 * lxc/          - Linux Native Containers
 * openvz/       - OpenVZ containers using cli tools
 * phyp/         - IBM Power Hypervisor using CLI tools over SSH
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * uml/          - User Mode Linux
 * vbox/         - Virtual Box using native API
 * vmware/       - VMware Workstation and Player using the vmrun tool
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore
 * xenapi/       - Xen using libxenserver


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU, UML and Xen drivers.
The ESX, Hyper-V, Power Hypervisor, Remote, Test & VirtualBox drivers all
implement the secondary drivers directly

 * cpu/          - CPU feature management
 * interface/    - Host network interface management
 * network/      - Virtual NAT networking
 * nwfilter/     - Network traffic filtering rules
 * node_device/  - Host device enumeration
 * secret/       - Secret management
 * security/     - Mandatory access control drivers
 * storage/      - Storage management drivers


Since both the hypervisor and secondary drivers can be built as
dlopen()able modules, it is *FORBIDDEN* to have build dependencies
between these directories. Drivers are only allowed to depend on
the public API, and the internal APIs in the util/ and conf/
directories