libvirt/src
Martin Kletzander 9d83281382 resctrl: Do not open directory for writing
When preparing for the removal of GNULIB commit 18dca21a32 removed the
unneeded O_DIRECTORY, but unfortunately started opening the directory for
writing which fails every time for a directory.  There is also no need for that
as flock() works on O_RDONLY file descriptor as well, even for LOCK_EX.

https://bugzilla.redhat.com/1852741

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2020-07-09 13:45:01 +02:00
..
access
admin src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
bhyve src: fix word spell typos 2020-07-09 10:01:41 +02:00
conf conf: use g_autofree for all pointers to virXMLPropString() in device_conf.c 2020-07-08 23:11:21 -04:00
cpu src: fix word spell typos 2020-07-09 10:01:41 +02:00
cpu_map cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
esx src: fix word spell typos 2020-07-09 10:01:41 +02:00
hyperv hyperv: use g_auto() for all virBuffers 2020-07-08 16:33:25 -04:00
hypervisor use g_auto() for all remaining non-g_auto() virBuffers 2020-07-08 16:34:52 -04:00
interface src: fix word spell typos 2020-07-09 10:01:41 +02:00
keycodemapdb@27acf0ef82 keycodemapdb: update submodule for win32 keycode fix 2020-05-07 12:18:29 +01:00
libxl src: fix word spell typos 2020-07-09 10:01:41 +02:00
locking src: fix word spell typos 2020-07-09 10:01:41 +02:00
logging src: fix word spell typos 2020-07-09 10:01:41 +02:00
lxc src: fix word spell typos 2020-07-09 10:01:41 +02:00
network eliminate unnecessary labels and ret variables 2020-07-08 16:36:22 -04:00
node_device src: fix word spell typos 2020-07-09 10:01:41 +02:00
nwfilter eliminate unnecessary labels and ret variables 2020-07-08 16:36:22 -04:00
openvz use g_auto() for all remaining non-g_auto() virBuffers 2020-07-08 16:34:52 -04:00
qemu src: fix word spell typos 2020-07-09 10:01:41 +02:00
remote src: fix word spell typos 2020-07-09 10:01:41 +02:00
rpc src: fix word spell typos 2020-07-09 10:01:41 +02:00
secret
security use g_auto() for all remaining non-g_auto() virBuffers 2020-07-08 16:34:52 -04:00
storage src: fix word spell typos 2020-07-09 10:01:41 +02:00
test test: Fix memory leak in testParseXMLDocFromFile 2020-06-16 15:01:06 +02:00
util resctrl: Do not open directory for writing 2020-07-09 13:45:01 +02:00
vbox src: fix word spell typos 2020-07-09 10:01:41 +02:00
vmware Remove use of variables passed only to 'VIR_FREE' 2020-06-15 10:27:37 +02:00
vmx src: fix word spell typos 2020-07-09 10:01:41 +02:00
vz src: fix word spell typos 2020-07-09 10:01:41 +02:00
admin_protocol-structs
datatypes.c src: make virObjectUnref return void 2020-06-03 10:20:17 +01:00
datatypes.h src: make virObjectUnref return void 2020-06-03 10:20:17 +01:00
driver-hypervisor.h
driver-interface.h
driver-network.h
driver-nodedev.h
driver-nwfilter.h
driver-secret.h
driver-state.h
driver-storage.h
driver-stream.h
driver.c driver: Yet 1 more g_autofree conversion change 2020-04-14 15:36:53 +02:00
driver.h
internal.h src: fix word spell typos 2020-07-09 10:01:41 +02:00
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_internal.h Fix some wrong usage of ATTRIBUTE_NONNULL() 2020-06-09 11:39:07 +02:00
libvirt_libssh2.syms
libvirt_libssh.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms virhostcpu.c: introduce virHostCPUGetAvailableCPUsBitmap() 2020-07-08 19:39:41 +02:00
libvirt_probes.d
libvirt_public.syms
libvirt_qemu_probes.d src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt_qemu.syms
libvirt_remote.syms
libvirt_sasl.syms
libvirt_vmware.syms
libvirt_vmx.syms
libvirt-domain-checkpoint.c checkpoint: Mention that VIR_DOMAIN_CHECKPOINT_XML_SIZE is expensive and stale 2020-07-07 12:58:19 +02:00
libvirt-domain-snapshot.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-domain.c src: fix word spell typos 2020-07-09 10:01:41 +02:00
libvirt-host.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-interface.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-lxc.c
libvirt-lxc.pc.in
libvirt-network.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-nodedev.c src: fix word spell typos 2020-07-09 10:01:41 +02:00
libvirt-nwfilter.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-qemu.c
libvirt-qemu.pc.in
libvirt-secret.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-storage.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt-stream.c src: don't include ref count in debug messages / probes 2020-06-03 10:20:17 +01:00
libvirt.c src: make virObjectUnref return void 2020-06-03 10:20:17 +01:00
libvirt.conf
libvirt.pc.in
lock_protocol-structs
lxc_monitor_protocol-structs
lxc_protocol-structs
Makefile.am
qemu_protocol-structs
README
remote_protocol-structs
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
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * vbox/         - Virtual Box using native API
 * vmware/       - VMware Workstation and Player using the vmrun tool
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU and Xen drivers.
The ESX, Hyper-V, 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