libvirt/src/qemu
Peter Krempa ba6c12df2c qemu: Allow skipping some errors in qemuDomainStorageOpenStat
Some callers of this function actually don't care about errors and reset
it. The message is still logged which might irritate users in this case.

Add a boolean flag which will do few checks whether it actually makes
sense to even try opening the storage file. For local files we check
whether it exists and for remote files we at first see whether we even
have a storage driver backend for it in the first place before trying to
open it.

Other problems will still report errors but these are the most common
scenarios which can happen here.

This patch changes the return value of the function so that the caller
is able to differentiate the possibilities.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-08-16 13:17:40 +02:00
..
EVENTHANDLERS.txt qemu/doc: Fix function name for handling events 2017-06-13 09:43:42 +02:00
libvirtd_qemu.aug qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
Makefile.inc.am qemu: introduce virtqemud daemon 2019-08-09 14:06:31 +01:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c util: Move enum convertors into virenum.(c|h) 2019-04-10 09:12:04 +02:00
qemu_agent.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_alias.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
qemu_alias.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_block.c qemu: block: Use simple backing stores string format if possible 2019-07-25 13:21:32 +02:00
qemu_block.h qemu: block: Use simple backing stores string format if possible 2019-07-25 13:21:32 +02:00
qemu_blockjob.c qemu: Add -blockdev support for block commit job 2019-07-29 13:58:26 +02:00
qemu_blockjob.h qemu: Add -blockdev support for block commit job 2019-07-29 13:58:26 +02:00
qemu_capabilities.c qemu: Check for drop-cache capability 2019-08-14 09:36:43 +02:00
qemu_capabilities.h qemu: Check for drop-cache capability 2019-08-14 09:36:43 +02:00
qemu_capspriv.h qemu: Translate feature names from query-cpu-model-expansion 2019-06-20 00:22:39 +02:00
qemu_cgroup.c qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
qemu_cgroup.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_command.c qemu: support for kvm-hint-dedicated performance hint 2019-08-12 15:13:04 +02:00
qemu_command.h qemu: Add possibility to prepare top image only for attachment via blockdev 2019-07-25 13:21:32 +02:00
qemu_conf.c qemu: conf: Cache domCaps in qemuCaps 2019-08-06 19:45:49 -04:00
qemu_conf.h qemu: conf: add virQEMUDriverGetDomainCapabilities 2019-08-06 19:45:49 -04:00
qemu_domain_address.c qemu: address: remove useless comment 2019-07-16 17:00:36 +02:00
qemu_domain_address.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_domain.c qemu: support for kvm-hint-dedicated performance hint 2019-08-12 15:13:04 +02:00
qemu_domain.h qemu: Pass qemuCaps to qemuDomainDefFormatBufInternal 2019-08-09 13:55:54 +02:00
qemu_driver.c qemu: Allow skipping some errors in qemuDomainStorageOpenStat 2019-08-16 13:17:40 +02:00
qemu_driver.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_extdevice.c Revert "tpm: Check TPM XML device configuration changes after edit" 2019-08-09 14:55:10 +02:00
qemu_extdevice.h Revert "tpm: Check TPM XML device configuration changes after edit" 2019-08-09 14:55:10 +02:00
qemu_firmware.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
qemu_firmware.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_hostdev.c qemu: De-duplicate some path definitions 2019-07-03 09:33:45 +02:00
qemu_hostdev.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_hotplug.c lib: Unify PCI address formatting 2019-08-05 19:42:15 +02:00
qemu_hotplug.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_hotplugpriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_interface.c util: allow tap-based guest interfaces to have MAC address prefix 0xFE 2019-08-12 14:22:05 -04:00
qemu_interface.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration_cookie.c qemu: Fix crash on incoming migration 2019-08-14 09:28:22 +02:00
qemu_migration_cookie.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration_params.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
qemu_migration_params.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration_paramspriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration.c qemu: Allow migration with disk cache on 2019-08-14 09:36:43 +02:00
qemu_migration.h qemu: Pass qemuCaps to qemuMigrationAnyPrepareDef 2019-08-09 13:55:54 +02:00
qemu_monitor_json.c qemu: Remove unnecessary check in qemuMonitorJSONGetJobInfoOne 2019-07-23 10:55:56 -04:00
qemu_monitor_json.h qemu: monitor: Add APIs for 'blockdev-create' 2019-07-18 17:59:33 +02:00
qemu_monitor_priv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_monitor_text.c qemu: Remove qemuMonitorTextSetCPU 2019-06-20 15:59:19 +02:00
qemu_monitor_text.h qemu: Remove qemuMonitorTextSetCPU 2019-06-20 15:59:19 +02:00
qemu_monitor.c qemu: driver: blockdevize qemuDomainGetBlockJobInfo 2019-07-25 13:21:32 +02:00
qemu_monitor.h qemu: monitor: Add APIs for 'blockdev-create' 2019-07-18 17:59:33 +02:00
qemu_process.c qemu: Pass correct qemuCaps to virDomainDefPostParse 2019-08-09 13:55:54 +02:00
qemu_process.h qemu: also delete qemuProcessAttach 2019-06-20 12:47:10 +02:00
qemu_processpriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_qapi.c qemu: qapi: Implement support for 'features' 2019-06-20 09:20:04 +02:00
qemu_qapi.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_security.c tpm: Set transationStarted to false if commit failed 2019-07-26 16:32:25 -05:00
qemu_security.h qemu_security: Implement qemuSecurityMoveImageMetadata 2019-07-03 08:36:04 +02:00
qemu_tpm.c tpm: Run swtpm_setup with less parameters on incoming migration 2019-07-27 07:56:00 -04:00
qemu_tpm.h tpm: Run swtpm_setup with less parameters on incoming migration 2019-07-27 07:56:00 -04:00
qemu.conf qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
test_libvirtd_qemu.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
THREADS.txt qemu: Introduce APIs for manipulating qemuDomainAgentJob 2018-06-20 13:24:17 +02:00
virtqemud.service.in qemu: introduce virtqemud daemon 2019-08-09 14:06:31 +01:00