libvirt/src/util
Peter Krempa 01adad0932 virStorageFileGetMetadataRecurse: Extract storage access
Extract the code that directly deals with storage. This allows further
simplification and clarification of virStorageFileGetMetadataRecurse.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2020-02-20 07:57:09 +01:00
..
glibcompat.c util: introduce compile time API version checking 2020-01-07 14:42:26 +00:00
glibcompat.h util: add compat impl of g_canonicalize_filename 2020-01-07 14:42:26 +00:00
iohelper.c src: conditionalize use of O_DIRECT 2020-01-29 14:51:40 +00:00
Makefile.inc.am util: delete the poll() based event loop impl 2020-02-07 15:03:54 +00:00
viralloc.c util: use glib memory allocation functions 2019-10-14 10:54:42 +01:00
viralloc.h gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
virarch.c util: add a virArchFromHost() impl for Windows 2020-01-29 14:51:39 +00:00
virarch.h Add a space before ending a comment 2020-01-30 12:32:03 +01:00
virarptable.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virarptable.h
viraudit.c Use g_strdup_vprintf() instead of virVasprintf() everywhere 2019-11-12 16:15:59 +01:00
viraudit.h Use G_GNUC_PRINTF instead of ATTRIBUTE_FMT_PRINTF 2019-10-15 16:14:18 +02:00
virauth.c util: Don't check the output of virGetUserConfigDirectory() 2019-12-20 09:38:43 +01:00
virauth.h
virauthconfig.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virauthconfig.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virbitmap.c gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
virbitmap.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virbpf.c virbpf: Fix typecast to __aligned_u64 type 2019-11-18 08:59:13 +01:00
virbpf.h util: introduce virbpf helpers 2019-11-15 12:58:00 +01:00
virbuffer.c virBufferTrim: do not accept len 2020-02-03 19:44:38 +01:00
virbuffer.h virBufferTrim: do not accept len 2020-02-03 19:44:38 +01:00
vircgroup.c src: assume sys/sysmacros.h always exists on Linux 2020-02-04 14:00:45 +00:00
vircgroup.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
vircgroupbackend.c
vircgroupbackend.h vircgroup: workaround devices in hybrid mode 2019-11-15 12:58:43 +01:00
vircgrouppriv.h vircgroup: introduce virCgroupV2DevicesAttachProg 2019-11-15 12:58:05 +01:00
vircgroupv1.c src: use g_lstat() instead of lstat() 2020-01-03 15:42:13 +00:00
vircgroupv1.h
vircgroupv2.c vircgroup: workaround devices in hybrid mode 2019-11-15 12:58:43 +01:00
vircgroupv2.h
vircgroupv2devices.c vircgroupv2devices: free BPF map when replacing with new one 2020-01-13 15:17:54 +01:00
vircgroupv2devices.h vircgroupv2devices: Unexport virCgroupV2DevicesAttachProg() 2020-01-06 17:30:17 +01:00
virclosecallbacks.c
virclosecallbacks.h
vircommand.c src: use closefrom() for mass closing of FDs 2020-02-12 11:12:03 +00:00
vircommand.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
vircommandpriv.h
virconf.c util: Don't check the output of virGetUserConfigDirectory() 2019-12-20 09:38:43 +01:00
virconf.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
vircrypto.c src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
vircrypto.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virdbus.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virdbus.h
virdbuspriv.h
virdevmapper.c src: assume sys/sysmacros.h always exists on Linux 2020-02-04 14:00:45 +00:00
virdevmapper.h
virdnsmasq.c src: remove usage of strchrnul function 2020-01-29 14:51:39 +00:00
virdnsmasq.h
virebtables.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virebtables.h
virendian.h
virenum.c
virenum.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
virerror.c Introduce source flags to virDomainGetHostname() 2020-01-16 09:02:35 +01:00
virerror.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virerrorpriv.h
virevent.c util: switch to use the GLib event loop impl 2020-02-07 15:03:53 +00:00
virevent.h event: add API for requiring an event loop impl to be registered 2019-12-18 14:04:59 +00:00
vireventglib.c util: import an event loop impl based on GMainContext 2020-02-07 15:03:53 +00:00
vireventglib.h util: import an event loop impl based on GMainContext 2020-02-07 15:03:53 +00:00
vireventglibwatch.c src: introduce helper API for creating GSource for socket 2020-02-07 15:03:53 +00:00
vireventglibwatch.h src: introduce helper API for creating GSource for socket 2020-02-07 15:03:53 +00:00
virfcp.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virfcp.h
virfdstream.c src: convert code to use virPipe APIs 2020-02-04 14:00:44 +00:00
virfdstream.h
virfile.c gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
virfile.h src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
virfilecache.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virfilecache.h
virfirewall.c Use g_strdup_vprintf() instead of virVasprintf() everywhere 2019-11-12 16:15:59 +01:00
virfirewall.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virfirewalld.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virfirewalld.h
virfirewalldpriv.h
virfirewallpriv.h
virfirmware.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virfirmware.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
virgettext.c src: optionally include xlocale.h header 2020-02-04 14:00:45 +00:00
virgettext.h
virgic.c
virgic.h
virhash.c virHashAddOrUpdateEntry: Simplify allocation of new entry 2020-02-04 13:45:33 +01:00
virhash.h virhash: Fix the expectations of virHashKeyEqual implementations 2020-02-04 13:45:33 +01:00
virhashcode.c Use G_GNUC_FALLTHROUGH instead of ATTRIBUTE_FALLTHROUGH 2019-10-15 16:14:19 +02:00
virhashcode.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virhook.c src: remove sys/wait.h from many files 2020-02-04 14:00:44 +00:00
virhook.h
virhostcpu.c src: remove unused sys/utsname.h includes 2020-01-29 14:51:39 +00:00
virhostcpu.h hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
virhostcpupriv.h
virhostdev.c src: conditionalize / remove use of sys/ioctl.h 2020-01-17 13:16:58 +00:00
virhostdev.h virhostdev: Include virNVMeDevice module 2019-12-17 10:04:43 +01:00
virhostmem.c src: remove unused sys/utsname.h includes 2020-01-29 14:51:39 +00:00
virhostmem.h
virhostuptime.c virhostuptime: Introduce virHostBootTimeInit() 2020-01-07 17:00:10 +01:00
virhostuptime.h virhostuptime: Introduce virHostBootTimeInit() 2020-01-07 17:00:10 +01:00
viridentity.c util: convert virIdentity class to use GObject 2019-10-14 10:54:42 +01:00
viridentity.h util: convert virIdentity class to use GObject 2019-10-14 10:54:42 +01:00
virinitctl.c src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
virinitctl.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
viriptables.c src: remove sys/wait.h from many files 2020-02-04 14:00:44 +00:00
viriptables.h network: allow DHCP/DNS/TFTP explicitly in OUTPUT rules 2019-10-18 18:49:54 +01:00
viriscsi.c Remove all the uses that use subtraction in their length argument 2019-12-12 14:24:35 +01:00
viriscsi.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virjson.c virJSONValueNewArray: Use g_new0 to allocate and remove NULL checks from callers 2020-02-04 13:45:33 +01:00
virjson.h util: json: Introduce virJSONValueArrayConcat 2020-02-04 13:45:32 +01:00
virkeycode.c src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
virkeycode.h
virkeyfile.c Remove the rest of VIR_STRNDUP 2019-12-12 14:24:35 +01:00
virkeyfile.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virkmod.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virkmod.h
virlease.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virlease.h
virlockspace.c virJSONValueNewArray: Use g_new0 to allocate and remove NULL checks from callers 2020-02-04 13:45:33 +01:00
virlockspace.h
virlog.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virlog.h util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virmacaddr.c use g_ascii_tolower instead of c_tolower from gnulib 2019-12-10 13:49:24 +01:00
virmacaddr.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
virmacmap.c virJSONValueNewArray: Use g_new0 to allocate and remove NULL checks from callers 2020-02-04 13:45:33 +01:00
virmacmap.h
virmdev.c src: replace last_component() with g_path_get_basename() 2020-01-03 15:42:13 +00:00
virmdev.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virmodule.c util: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virmodule.h
virnetdev.c src: conditionalize use of net/if.h 2020-01-29 14:51:40 +00:00
virnetdev.h src: conditionalize use of net/if.h 2020-01-29 14:51:40 +00:00
virnetdevbandwidth.c Add a space before ending a comment 2020-01-30 12:32:03 +01:00
virnetdevbandwidth.h conf: make virDomainNetGetActualBandwidth arg/return value const 2019-11-25 15:29:51 -05:00
virnetdevbridge.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetdevbridge.h util: set bridge device MAC address explicitly during virNetDevBridgeCreate 2019-11-07 22:09:19 -05:00
virnetdevip.c src: conditionalize use of net/if.h 2020-01-29 14:51:40 +00:00
virnetdevip.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virnetdevmacvlan.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetdevmacvlan.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevmidonet.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevmidonet.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevopenvswitch.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevopenvswitch.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevtap.c src: conditionalize use of net/if.h 2020-01-29 14:51:40 +00:00
virnetdevtap.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetdevveth.c src: remove sys/wait.h from many files 2020-02-04 14:00:44 +00:00
virnetdevveth.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virnetdevvlan.c
virnetdevvlan.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virnetdevvportprofile.c Add a space before ending a comment 2020-01-30 12:32:03 +01:00
virnetdevvportprofile.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
virnetlink.c Add a space before ending a comment 2020-01-30 12:32:03 +01:00
virnetlink.h m4: virt-libnl: drop libnl-1.0 support 2019-10-23 14:30:47 +02:00
virnodesuspend.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virnodesuspend.h
virnuma.c util: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virnuma.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virnvme.c util: Introduce virNVMeDevice module 2019-12-17 10:04:43 +01:00
virnvme.h virhostdev: Include virNVMeDevice module 2019-12-17 10:04:43 +01:00
virobject.c Drop virAtomic module 2020-02-02 16:36:58 +01:00
virobject.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
virpci.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virpci.h virpci: Introduce virPCIDeviceAddressCopy 2019-12-17 10:04:43 +01:00
virperf.c src: conditionalize / remove use of sys/ioctl.h 2020-01-17 13:16:58 +00:00
virperf.h Add a space before ending a comment 2020-01-30 12:32:03 +01:00
virpidfile.c src: replace use of INT_BUFSIZE_BOUND macros 2020-01-17 09:58:43 +00:00
virpidfile.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virpolkit.c src: convert code to use virPipe APIs 2020-02-04 14:00:44 +00:00
virpolkit.h
virportallocator.c src: convert code to use new socket portability wrappers 2020-01-17 10:01:57 +00:00
virportallocator.h
virprobe.h
virprocess.c src: convert code to use virPipe APIs 2020-02-04 14:00:44 +00:00
virprocess.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virqemu.c virBufferTrim: do not accept len 2020-02-03 19:44:38 +01:00
virqemu.h
virrandom.c src: remove WITH_GNUTLS usage 2020-01-22 18:07:09 +01:00
virrandom.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virresctrl.c virBufferTrim: do not accept len 2020-02-03 19:44:38 +01:00
virresctrl.h util, resctrl: using 64bit interface instead of 32bit for counters 2020-01-06 13:30:03 +00:00
virresctrlpriv.h
virrotatingfile.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virrotatingfile.h
virscsi.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virscsi.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virscsihost.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virscsihost.h
virscsivhost.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virscsivhost.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virseclabel.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virseclabel.h
virsecret.c secret: move virSecretGetSecretString into virsecret 2020-01-17 15:52:37 +01:00
virsecret.h secret: move virSecretGetSecretString into virsecret 2020-01-17 15:52:37 +01:00
virsocket.c src: implement APIs for passing FDs over UNIX sockets 2020-01-29 14:51:39 +00:00
virsocket.h gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
virsocketaddr.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virsocketaddr.h src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virstorageencryption.c virstorage: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:58 +02:00
virstorageencryption.h
virstoragefile.c virStorageFileGetMetadataRecurse: Extract storage access 2020-02-20 07:57:09 +01:00
virstoragefile.h util: virstoragefile: Add data structure for storing storage source slices 2020-02-14 16:32:21 +01:00
virstoragefilebackend.c
virstoragefilebackend.h
virstring.c src: optionally include xlocale.h header 2020-02-04 14:00:45 +00:00
virstring.h src: replace use of INT_BUFSIZE_BOUND macros 2020-01-17 09:58:43 +00:00
virsysinfo.c src: remove sys/wait.h from many files 2020-02-04 14:00:44 +00:00
virsysinfo.h util: Get rid of "no_memory" labels 2019-12-20 17:02:40 -05:00
virsysinfopriv.h
virsystemd.c Drop virAtomic module 2020-02-02 16:36:58 +01:00
virsystemd.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virsystemdpriv.h
virthread.c
virthread.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virthreadjob.c
virthreadjob.h
virthreadpool.c
virthreadpool.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virtime.c src: replace gmtime_r/localtime_r/strftime with GDateTime 2020-01-17 10:02:01 +00:00
virtime.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virtpm.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virtpm.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virtypedparam-public.c util: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virtypedparam.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
virtypedparam.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
viruri.c util: add helper API for getting URI parameters 2020-01-27 11:02:03 +00:00
viruri.h util: add helper API for getting URI parameters 2020-01-27 11:02:03 +00:00
virusb.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virusb.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
virutil.c src: assume sys/sysmacros.h always exists on Linux 2020-02-04 14:00:45 +00:00
virutil.h src: introduce a wrapper for the pipe2() system call 2020-02-04 14:00:44 +00:00
viruuid.c util: remove unneeded labels 2020-01-07 16:40:41 +01:00
viruuid.h Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
virvhba.c util: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virvhba.h
virvsock.c src: conditionalize / remove use of sys/ioctl.h 2020-01-17 13:16:58 +00:00
virvsock.h
virxdrdefs.h src: remove all traces of Cygwin support 2020-01-29 14:51:40 +00:00
virxml.c util: xml: Make virXMLFormatElement void 2019-10-24 19:35:34 +02:00
virxml.h util: xml: Make virXMLFormatElement void 2019-10-24 19:35:34 +02:00