libvirt/src
John Ferlan 77fb4c4f9e storage_backend: Fix issue with allocation of 0 length volume
Commit id '532fef36' added a call to fallocate() and some error
handling based on whether or not the function existed. This new
call resulted in libvirt-cim/cimtest failures when attempting to
create a volume with "0" (zero) allocation value. The failure is
logged as:

Oct  9 07:51:33 localhost libvirtd[8030]: cannot allocate 0 bytes in
file '/var/lib/libvirt/images/cimtest-vol.img': Invalid argument

This can also be seen with virsh vol-create-as:

error: Failed to create vol test
error: cannot allocate 0 bytes in file '/home/vm-images/test': Invalid
argument

error: Failed to create vol test
error: cannot allocate 0 bytes in file '/home/vm-images/test': Invalid
argument

It turns out fallocate() will return EINVAL when the incoming 'len'
(or allocation) value is 0 (or less).
2013-10-10 08:33:04 -04:00
..
access Add support for using 3-arg pkcheck syntax for process (CVE-2013-4311) 2013-09-18 15:13:42 +01:00
conf qemu: Prefer VFIO for PCI device passthrough 2013-10-10 12:00:56 +02:00
cpu cpu: add function to get the models for an arch 2013-09-23 15:50:30 -06:00
esx Stop calling virAllocN directly from ESX code 2013-09-05 12:00:07 +01:00
hyperv
interface netcf driver: use a single netcf handle for all connections 2013-09-12 07:33:24 -04:00
libxl libxl: Compile regular expression where it is used 2013-09-05 10:55:17 -06:00
locking test_virtlockd.aug.in: Use the correct file 2013-09-03 17:03:30 +02:00
lxc LXC: Fix handling of RAM filesystem size units 2013-10-09 17:44:45 +02:00
network bridge driver: don't masquerade local subnet broadcast/multicast packets 2013-09-25 08:31:50 -04:00
node_device Stop free'ing 'const char *' strings 2013-09-05 11:28:01 +01:00
nwfilter Remove use of virConnectPtr from all remaining nwfilter code 2013-10-07 14:19:10 +01:00
openvz cleanup: Kill usage of access(PATH, F_OK) in favor of virFileExists() 2013-09-16 10:37:39 +02:00
parallels cleanup: Kill usage of access(PATH, F_OK) in favor of virFileExists() 2013-09-16 10:37:39 +02:00
phyp
qemu qemu: Init @pcidevs in qemuPrepareHostdevPCIDevices 2013-10-10 12:32:49 +02:00
remote rpc: Increase bound limit for virDomainGetJobStats 2013-09-27 12:56:13 +02:00
rpc Adjust legacy max payload size to account for header information 2013-10-07 13:28:44 +02:00
secret
security selinux: Only close the selabel_handle once 2013-10-01 15:00:07 +02:00
storage storage_backend: Fix issue with allocation of 0 length volume 2013-10-10 08:33:04 -04:00
test test: Fix coverity warnings 2013-10-04 10:06:56 -04:00
uml Remove use of virConnectPtr from all remaining nwfilter code 2013-10-07 14:19:10 +01:00
util cgroup: fix a comment typo in vircgroup.c 2013-10-09 17:16:58 +02:00
vbox
vmware Remove tab from previous commit 2013-09-30 00:09:59 +08:00
vmx Add missing check for OOM with virVMXEscapeHexPipe 2013-09-25 18:12:09 +01:00
xen Fix handling of OOM when getting Xen dom ID 2013-09-25 18:12:08 +01:00
xenapi
xenxs Fix double free of hostdev on OOM in xenParseSxprPCI 2013-09-25 18:12:08 +01:00
check-aclperms.pl Fix naming of permission for detecting storage pools 2013-09-12 17:20:07 +01:00
check-aclrules.pl
check-driverimpls.pl
check-drivername.pl
check-symfile.pl
check-symsorting.pl
datatypes.c Fix crash if OOM occurs when creating virConnectPtr 2013-09-24 10:51:28 +01:00
datatypes.h
driver.c
driver.h libvirt: add new public API virConnectGetCPUModelNames 2013-09-23 15:41:50 -06:00
dtrace2systemtap.pl
fdstream.c Always open files in binary mode in virFDStreamOpenFileInternal 2013-09-24 14:27:41 +02:00
fdstream.h
gnutls_1_0_compat.h
internal.h
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: Prefer VFIO for PCI device passthrough 2013-10-10 12:00:56 +02:00
libvirt_probes.d
libvirt_public.syms libvirt: add new public API virConnectGetCPUModelNames 2013-09-23 15:41:50 -06:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_remote.syms build: fix build --without-remote 2013-10-04 17:01:47 -06:00
libvirt_sasl.syms
libvirt_vmware.syms VMware: Make version parsing testable and add tests 2013-09-20 08:23:31 -05:00
libvirt_vmx.syms VMX: Create virVMXFormatDisk() from HD and CD-ROM 2013-09-01 23:11:50 -05:00
libvirt_xenxs.syms
libvirt-lxc.c
libvirt-qemu.c
libvirt.c libvirt: add new public API virConnectGetCPUModelNames 2013-09-23 15:41:50 -06:00
libvirt.conf
lock_protocol-structs tests: check remaining .x files 2013-09-09 12:04:03 -06:00
lxc_monitor_protocol-structs tests: check remaining .x files 2013-09-09 12:04:03 -06:00
lxc_protocol-structs
Makefile.am build: fix build --without-remote 2013-10-04 17:01:47 -06:00
nodeinfo.c build: fix linker error on FreeBSD 2013-10-08 12:45:20 -06:00
nodeinfo.h
qemu_protocol-structs
README
remote_protocol-structs virConnectGetCPUModelNames: implement the remote protocol 2013-09-23 15:50:35 -06: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:

 * 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