]> 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:21:19 +0000 (14:21 +0200)
commit27b2639f162aef2184b52f24757387ea346fc77a
treee434dafcafa7ea01bd3198af88d3f3b4f7a9bd34
parent1bee06a4abd139b0d582ca93cfa9440f94dd5f90
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