]> xenbits.xensource.com Git - 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 10:42:15 +0000 (12:42 +0200)
commit13fde7ceab556804dc6cfb3e56938fb948ffe83d
tree1333253d906a43334a66a78b6e58d6a0db7b3900
parentf24e90d542e2d5c9c96872743875d245bef43fc3
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
src/storage/storage_backend_fs.c