libvirt/src
Eric Blake 279b1b106d maint: use consistent if-else braces in lxc, vbox, phyp
I'm about to add a syntax check that enforces our documented
HACKING style of always using matching {} on if-else statements.

This patch focuses on drivers that had several issues.

* src/lxc/lxc_fuse.c (lxcProcGetattr, lxcProcReadMeminfo): Correct
use of {}.
* src/lxc/lxc_driver.c (lxcDomainMergeBlkioDevice): Likewise.
* src/phyp/phyp_driver.c (phypConnectNumOfDomainsGeneric)
(phypUUIDTable_Init, openSSHSession, phypStoragePoolListVolumes)
(phypConnectListStoragePools, phypDomainSetVcpusFlags)
(phypStorageVolGetXMLDesc, phypStoragePoolGetXMLDesc)
(phypConnectListDefinedDomains): Likewise.
* src/vbox/vbox_common.c (vboxAttachSound, vboxDumpDisplay)
(vboxDomainRevertToSnapshot, vboxDomainSnapshotDelete): Likewise.
* src/vbox/vbox_tmpl.c (vboxStorageVolGetXMLDesc): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-09-04 08:53:21 -06:00
..
access
bhyve bhyve: add volumes support 2014-08-19 20:50:22 +04:00
conf maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
cpu maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
esx esx: Fix a comment about VSphere versions 2014-07-17 21:19:42 +02:00
hyperv
interface
libxl maint: use consistent if-else braces in xen and friends 2014-09-04 08:53:21 -06:00
locking sanlock: Avoid freeing uninitialized value 2014-09-03 15:22:10 +02:00
lxc maint: use consistent if-else braces in lxc, vbox, phyp 2014-09-04 08:53:21 -06:00
network maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
node_device maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
nwfilter maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
openvz
parallels parallels: Resolve Coverity USE_AFTER_FREE 2014-08-27 12:52:26 -04:00
phyp maint: use consistent if-else braces in lxc, vbox, phyp 2014-09-04 08:53:21 -06:00
qemu maint: use consistent if-else braces in qemu 2014-09-04 08:53:21 -06:00
remote remote: Fix memory leak on error path when deserializing bulk stats 2014-09-02 15:16:47 +02:00
rpc security: fix DH key generation when FIPS mode is on 2014-09-04 11:56:36 +02:00
secret
security selinux: properly label tap FDs with imagelabel 2014-09-01 15:36:23 +02:00
storage maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
test Free ifname in testDomainGenerateIfnames 2014-09-02 11:57:39 +02:00
uml support for QEMU vhost-user 2014-07-16 18:44:57 +02:00
util vircgroup: Resolve Coverity RESOURCE_LEAK 2014-09-03 15:00:19 -04:00
vbox maint: use consistent if-else braces in lxc, vbox, phyp 2014-09-04 08:53:21 -06:00
vmware
vmx
xen maint: use consistent if-else braces in xen and friends 2014-09-04 08:53:21 -06:00
xenapi maint: use consistent if-else braces in xen and friends 2014-09-04 08:53:21 -06:00
xenconfig maint: use consistent if-else braces in xen and friends 2014-09-04 08:53:21 -06:00
check-aclperms.pl
check-aclrules.pl
check-driverimpls.pl
check-drivername.pl
check-symfile.pl
check-symsorting.pl
datatypes.c
datatypes.h
driver.c virDriverLoadModule: Honor libvirt func name tranlsation 2014-08-27 07:41:48 +02:00
driver.h API: Tweak virDomainOpenGraphics to return fd directly 2014-08-26 16:36:32 -06:00
dtrace2systemtap.pl
fdstream.c fix mingw build 2014-08-25 09:44:32 +02:00
fdstream.h fdstream: introduce virFDStreamOpenBlockDevice 2014-08-25 10:46:13 +04:00
gnutls_1_0_compat.h
internal.h Fix spacing around commas 2014-08-22 15:03:39 +02:00
libvirt_atomic.syms
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_gnutls.syms
libvirt_internal.h
libvirt_libssh2.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms qemu: ensure sane umask for qemu process 2014-09-03 05:58:15 -06:00
libvirt_probes.d
libvirt_public.syms blockcopy: virDomainBlockCopy with XML destination, typed params 2014-08-26 15:42:35 -06:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms remote: create virNetServerServiceNewFDOrUNIX() wrapper 2014-08-22 09:12:13 +02:00
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt_xenconfig.syms xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
libvirt-lxc.c
libvirt-lxc.pc.in
libvirt-qemu.c
libvirt-qemu.pc.in
libvirt.c lib: Add few flags for the bulk stats APIs 2014-08-28 11:31:38 +02:00
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am vbox: Register per partes 2014-08-27 08:05:25 +02:00
nodeinfo.c nodeCapsInitNUMA: Avoid @cpumap leak 2014-08-20 16:15:00 +02:00
nodeinfo.h
nodeinfopriv.h
qemu_protocol-structs
README
remote_protocol-structs remote: Implement bulk domain stats APIs in the remote driver 2014-08-28 11:59:21 +02:00
virkeepaliveprotocol-structs
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:

 * bhyve         - bhyve - The BSD Hypervisor
 * 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