]> xenbits.xensource.com Git - libvirt.git/commit
storage: Fix bug of fs pool destroying
authorOsier Yang <jyang@redhat.com>
Wed, 21 Nov 2012 03:22:39 +0000 (11:22 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 22 Nov 2012 03:22:12 +0000 (11:22 +0800)
commitf4ac06569a8ffce24fb8c07a0fc01574e38de6e4
tree0340029d949c19c0f0f020bd40174a1889e5c368
parentf0e72b2f5c675f927d04545dc5095f9e5998f171
storage: Fix bug of fs pool destroying

Regression introduced by commit 258e06c85b7, "ret" could be set to 1
or 0 by virStorageBackendFileSystemIsMounted before goto cleanup.
This could mislead the callers (up to the public API
virStoragePoolDestroy) to return success even the underlying umount
command fails.
src/storage/storage_backend_fs.c