]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Attempt to refresh volume after successful wipe volume
authorJohn Ferlan <jferlan@redhat.com>
Thu, 17 Dec 2015 12:30:03 +0000 (07:30 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 17 Dec 2015 12:30:03 +0000 (07:30 -0500)
commit80ca86e54d101508ba6f3c5affc420d946810331
tree836307c5528c9bf3bd8391d55425adb0d515f33b
parentf61770a1698def62d153e89cb66b0c3bb3b34cd8
storage: Attempt to refresh volume after successful wipe volume

https://bugzilla.redhat.com/show_bug.cgi?id=1270709

When a volume wipe is successful, perform a volume refresh afterwards to
update any volume data that may be used in future volume commands, such as
volume resize.  For a raw file volume, a wipe could truncate the file and
a followup volume resize the capacity may fail because the volume target
allocation isn't updated to reflect the wipe activity.
src/storage/storage_driver.c