Re: [libvirt] [PATCH 1/1] Fix pool create when pool already exists.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 30, 2009 at 10:32:45PM +0100, Daniel P. Berrange wrote:
> On Tue, Jun 30, 2009 at 04:22:38PM -0400, David Allan wrote:
> > * src/storage_driver.c: don't call virStoragePoolObjRemove when a pool create call fails because the pool already exists.
> > ---
> >  src/storage_driver.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> > diff --git a/src/storage_driver.c b/src/storage_driver.c
> > index 69dcbda..5a26993 100644
> > --- a/src/storage_driver.c
> > +++ b/src/storage_driver.c
> > @@ -476,6 +476,8 @@ storagePoolCreate(virConnectPtr conn,
> >      if (pool) {
> >          virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
> >                                "%s", _("storage pool already exists"));
> > +        virStoragePoolObjUnlock(pool);
> > +        pool = NULL;
> >          goto cleanup;
> >      }
> 
> ACK

  Indeed, a very serious bug, applied and commited !

   thanks,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]