]> xenbits.xensource.com Git - libvirt.git/commit
Fix return value semantic of virFileMakePath
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 5 Jul 2011 21:02:53 +0000 (23:02 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 6 Jul 2011 07:27:06 +0000 (09:27 +0200)
commite123e1ee6b8e03b6286b2222d002c57418b27a63
treef3215cfaef39f5168fac3db8a358c83061eafcbb
parentc7694e3e50f3516ec8027c4c666e48a36fe4094f
Fix return value semantic of virFileMakePath

Some callers expected virFileMakePath to set errno, some expected
it to return an errno value. Unify this to return 0 on success and
-1 on error. Set errno to report detailed error information.

Also optimize virFileMakePath if stat fails with an errno different
from ENOENT.
16 files changed:
src/conf/domain_conf.c
src/conf/network_conf.c
src/conf/nwfilter_conf.c
src/conf/storage_conf.c
src/libxl/libxl_driver.c
src/lxc/lxc_container.c
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c
src/network/bridge_driver.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/storage/storage_backend_fs.c
src/storage/storage_driver.c
src/uml/uml_driver.c
src/util/dnsmasq.c
src/util/util.c