mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-24 08:25:45 +00:00
2ad04f7853
virFileOperation previously returned 0 on success, or the value of errno on failure. Although there are other functions in libvirt that use this convention, the preferred (and more common) convention is to return 0 on success and -errno (or simply -1 in some cases) on failure. This way the check for failure is always (ret < 0). * src/util/util.c - change virFileOperation and virFileOperationNoFork to return -errno on failure. * src/storage/storage_backend.c, src/qemu/qemu_driver.c - change the hook functions passed to virFileOperation to return -errno on failure. |
||
---|---|---|
.. | ||
libvirtd_qemu.aug | ||
qemu_bridge_filter.c | ||
qemu_bridge_filter.h | ||
qemu_conf.c | ||
qemu_conf.h | ||
qemu_driver.c | ||
qemu_driver.h | ||
qemu_monitor_json.c | ||
qemu_monitor_json.h | ||
qemu_monitor_text.c | ||
qemu_monitor_text.h | ||
qemu_monitor.c | ||
qemu_monitor.h | ||
qemu_security_dac.c | ||
qemu_security_dac.h | ||
qemu_security_stacked.c | ||
qemu_security_stacked.h | ||
qemu.conf | ||
test_libvirtd_qemu.aug | ||
THREADS.txt |