]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: return -1 when fs pool can't be mounted
authorJán Tomko <jtomko@redhat.com>
Thu, 11 Jul 2013 10:36:59 +0000 (12:36 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 11 Jul 2013 12:33:44 +0000 (14:33 +0200)
commit14ce155a3a3bc5e925ea2676ef43a6a80254b18d
treea47372583e6c64a7842527c9d10a413df3da6476
parent4d21d845326ca0e3a342bef1204a1216ef86d885
storage: return -1 when fs pool can't be mounted

Don't reuse the return value of virStorageBackendFileSystemIsMounted.
If it's 0, we'd return it even if the mount command failed.

Also, don't report another error if it's -1, since one has already
been reported.

Introduced by 258e06c.

https://bugzilla.redhat.com/show_bug.cgi?id=981251
(cherry picked from commit 13fde7ceab556804dc6cfb3e56938fb948ffe83d)
src/storage/storage_backend_fs.c