libvirt/src
Osier Yang d26b73ca2b storage: Skips backingStore of virtual snapshot lv
lvs outputs "[$lvname_vorigin]" for the virtual snapshot lv
(created with "--virtualsize"), and the original device pointed
by "$lvname_vorigin" is just for lvm internal use, one should
never use it.

Per lvm's nameing rules, "[" is not valid as part of the vg/lv name.
(man 8 lvm).

<quote>
VALID NAMES
The following characters are valid for VG and LV names: a-z A-Z 0-9 + _
. -

VG and LV names cannot begin with a hyphen.   There  are  also  various
reserved  names that are used internally by lvm that can not be used as
LV or VG names.  A VG cannot be called anything that exists in /dev/ at
the time of creation, nor can it be called '.' or '..'.  A LV cannot be
called '.' '..' 'snapshot' or 'pvmove'. The LV name may also  not  con‐
tain the strings '_mlog' or '_mimage'
</quote>

So we can skip the set the lv's backingStore by checking if the name
begins with a "[".
2011-11-21 11:26:54 +08:00
..
conf Add support for VLAN filtering 2011-11-19 07:26:56 -05:00
cpu snapshot: simplify indentation of cpu features 2011-10-20 16:56:28 -06:00
esx Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
hyperv hyperv: Report an error for acceptable URI schemes with a transport 2011-09-29 10:26:18 +02:00
interface
libxl Fix default console type setting 2011-11-03 12:01:48 +00:00
locking virLockManagerNopInit: Rename flags to unused_flags 2011-09-27 11:11:14 +02:00
lxc Add support for interfaces with type=direct to LXC 2011-11-18 16:12:34 +00:00
network Add missing 'const' annotations for internal domain conf helpers 2011-11-18 16:10:37 +00:00
node_device build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
nwfilter Add support for VLAN filtering 2011-11-19 07:26:56 -05:00
openvz build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
phyp Fix default console type setting 2011-11-03 12:01:48 +00:00
qemu enable cgroup cpuset by default 2011-11-18 11:38:19 -07:00
remote API: remote support for VIR_TYPED_PARAM_STRING 2011-11-11 17:25:21 -07:00
rpc Don't return a fatal error if receiving unexpected stream data 2011-11-16 11:22:39 +00:00
secret secret: add Ceph secret type 2011-10-28 11:34:17 -06:00
security Add missing defaultConsoleTargetType callback for AppArmour 2011-11-07 15:15:25 +00:00
storage storage: Skips backingStore of virtual snapshot lv 2011-11-21 11:26:54 +08:00
test Fix default console type setting 2011-11-03 12:01:48 +00:00
uml build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
util Don't copy sexpr node value that is an empty string 2011-11-18 16:00:31 -07:00
vbox Santize naming of socket address APIs 2011-11-09 17:10:23 +00:00
vmware Fix default console type setting 2011-11-03 12:01:48 +00:00
vmx esx: Support vSphere 5.x 2011-11-01 18:00:34 +01:00
xen Fix default console type setting 2011-11-03 12:01:48 +00:00
xenapi xenapi: remove unused variable 2011-11-11 11:10:18 -07:00
xenxs Allow multiple consoles per virtual guest 2011-11-03 12:01:05 +00:00
.gitignore Rewrite all the DTrace/SystemTAP probing 2011-10-11 11:26:13 +01:00
datatypes.c
datatypes.h
driver.c
driver.h Introduce the virDomainOpenGraphics API 2011-10-28 10:23:51 +01:00
dtrace2systemtap.pl Add a systemtap script for watching QEMU monitor interactions 2011-10-27 10:42:14 +01:00
fdstream.c virFDStream: close also given errfd (fd leak) 2011-10-13 12:09:48 -06:00
fdstream.h
gnutls_1_0_compat.h
internal.h Rewrite all the DTrace/SystemTAP probing 2011-10-11 11:26:13 +01:00
libvirt_bridge.syms bridge: modify for use when sVirt is enabled with qemu 2011-10-27 20:28:39 -06:00
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_internal.h API: add VIR_TYPED_PARAM_STRING 2011-11-11 17:21:36 -07:00
libvirt_linux.syms
libvirt_macvtap.syms
libvirt_network.syms
libvirt_nwfilter.syms
libvirt_private.syms Create rules for each member of a list 2011-11-18 11:58:18 -05:00
libvirt_public.syms Introduce the virDomainOpenGraphics API 2011-10-28 10:23:51 +01:00
libvirt_qemu.syms
libvirt_sasl.syms build: fix mingw build without sasl 2011-10-11 16:30:25 -06:00
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-qemu.c qemu_api: doc improvements 2011-09-15 13:56:38 -06:00
libvirt.c API: add VIR_TYPED_PARAM_STRING 2011-11-11 17:21:36 -07:00
libvirt.conf Allow for URI aliases when connecting to libvirt 2011-10-19 09:14:34 +01:00
Makefile.am Move ifaceMacvtapLinkDump and ifaceGetNthParent functions 2011-11-18 16:10:02 +00:00
nodeinfo.c
nodeinfo.h
probes.d Add APIs for virNetSocket for sending/receiving file descriptors 2011-10-28 10:23:53 +01:00
qemu_protocol-structs
README
remote_protocol-structs API: remote support for VIR_TYPED_PARAM_STRING 2011-11-11 17:25:21 -07:00
virnetprotocol-structs Extend RPC protocol to allow FD passing 2011-10-28 10:27:15 +01:00

       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