]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: refactor storage file checks to allow error reporting
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 25 Apr 2018 13:09:24 +0000 (14:09 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 3 May 2018 12:16:00 +0000 (13:16 +0100)
commit1421e7168cc9bb595f8c327977888c7b90ee715c
tree6279b1301400c008bd2606dbad6caac56f9ac050
parentc444505c9902d038740d8e39a18ad3c86177bf58
util: refactor storage file checks to allow error reporting

The virStorageFileSupportsSecurityDriver and
virStorageFileSupportsAccess currently just return a boolean
value. This is ok because they don't have any failure scenarios
but a subsequent patch is going to introduce potential failure
scenario. This changes their return type from a boolean to an
int with values -1, 0, 1.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/util/virstoragefile.c
src/util/virstoragefile.h