[libvirt] [PATCH 3/6] storage: fs: Don't attempt directory creation if it already exists

Christophe Fergeau cfergeau at redhat.com
Thu Jul 16 11:39:51 UTC 2015


On Thu, Jul 16, 2015 at 02:02:39PM +0800, tzheng wrote:
> Hi,Cole
> 
> After this patch is included in libvirt on rhel7.2,virt-manager can not
> create dir pool with existing directory.
> There is no default pool created in a fresh rhel7.2 system,so if I try to
> create default pool,the below error shows:
> Error creating pool: Could not build storage pool: failed to create
> directory '/var/lib/libvirt/images': File exists
> 
> Do you think it's acceptable for this change since the
> directory(/var/lib/libvirt/images) is created by libvirt,if users want to
> create pool with /var/lib/libvirt/images,they need to delete images
> directory firstly,if so I think maybe some notes in doc is preferred,thanks
> very much.

This part of the code was then changed by
https://libvirt.org/git/?p=libvirt.git;a=commit;h=c8661a1a7ee8ef11010
Are you 100% sure it's this patch which causes the issue you describe?

GNOME Boxes is having very similar issues, see
https://bugzilla.gnome.org/show_bug.cgi?id=752417

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150716/c391554d/attachment-0001.sig>


More information about the libvir-list mailing list