mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Fix creation of unmanaged pools
This commit is contained in:
1 parent
d8b363c35f
commit
cefa185c1f
2 files changed
+12
-2
No files matched your search
@@ -1,3 +1,9 @@
|
||||
Mon Mar 17 11:10:22 EDT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/storage_driver.c: Don't crash if backend is missing the
|
||||
startPool operation, and run refreshPool when creating an
|
||||
unmanaged pool
|
||||
|
||||
Mon Mar 17 11:09:22 EDT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/storage_backend.c: Cope with missing SELinux context
|
||||
|
||||
@@ -416,8 +416,12 @@ storagePoolCreate(virConnectPtr conn,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (backend->startPool(conn, pool) < 0) {
|
||||
virStoragePoolObjRemove(driver, pool);
|
||||
if (backend->startPool &&
|
||||
backend->startPool(conn, pool) < 0)
|
||||
return NULL;
|
||||
if (backend->refreshPool(conn, pool) < 0) {
|
||||
if (backend->stopPool)
|
||||
backend->stopPool(conn, pool);
|
||||
return NULL;
|
||||
}
|
||||
pool->active = 1;
|
||||
|
||||
Reference in new issue
Block a user