]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storagePoolCreateXML: Don't lose persistent storage on failed create
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 24 May 2019 14:35:45 +0000 (16:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Aug 2019 15:09:05 +0000 (17:09 +0200)
commit9342bc626b040d2d7bc45e7e9987b1f756c1ca34
treed50115848cb8adefed30b87740bcf665ee8d0b51
parent1340327f4807f1e58376c26ba19005dc4893411a
storagePoolCreateXML: Don't lose persistent storage on failed create

If there's a persistent storage and user tries to start a new one
with the same name and UUID (e.g. to test new configuration) it
may happen that upon failure we lose the persistent defintion.
Fortunately, we don't remove it from the disk only from the
internal list of the pools.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_driver.c