]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storagePoolDefineXML: prefer using newDef to save config file
authorShichangkuo <shi.changkuo@h3c.com>
Tue, 10 Jul 2018 07:15:24 +0000 (07:15 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jul 2018 09:22:26 +0000 (11:22 +0200)
commita94bb4ebdf07f643133acbac3953975bcaf951db
tree6bec3560ef1c9cb91c9574a058f9fc8409ec209c
parentfac0dacd54c02b842c995d0999d9450d09d1e7cd
storagePoolDefineXML: prefer using newDef to save config file

When re-defining an active storage pool, due to a bug the config
file on disk is not changed. This is because we are passing old
definition instead of new one to virStoragePoolObjSaveDef.
This issue was introduced by bfcd8fc9,

Signed-off-by: Changkuo Shi <shi.changkuo@h3c.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_driver.c