mirror of https://gitee.com/openkylin/libvirt.git
* src/storage_driver.c: don't destroy a pool when calling create
by mistake, patch by Dave Allan. daniel
This commit is contained in:
parent
eb6d21cc0e
commit
1476b6d487
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Jul 1 10:21:15 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/storage_driver.c: don't destroy a pool when calling create
|
||||||
|
by mistake, patch by Dave Allan.
|
||||||
|
|
||||||
Mon Jun 29 18:01:20 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
Mon Jun 29 18:01:20 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Reduce LXC capabilities
|
Reduce LXC capabilities
|
||||||
|
|
|
@ -476,6 +476,8 @@ storagePoolCreate(virConnectPtr conn,
|
||||||
if (pool) {
|
if (pool) {
|
||||||
virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
"%s", _("storage pool already exists"));
|
"%s", _("storage pool already exists"));
|
||||||
|
virStoragePoolObjUnlock(pool);
|
||||||
|
pool = NULL;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue