]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't skip zero'ing end of volume file when inputvol is shorter than newvol
authorLaine Stump <laine@laine.org>
Mon, 19 Jul 2010 22:53:38 +0000 (18:53 -0400)
committerLaine Stump <laine@laine.org>
Tue, 20 Jul 2010 01:01:12 +0000 (21:01 -0400)
commit35bebb57824d6addd158c286d07fa07236187aa1
tree26ff719ae0c2af560c9ccf01476dea3e9cdb7785
parent4487d33f67bd0e33a3b068c5379385fb2c8627e9
Don't skip zero'ing end of volume file when inputvol is shorter than newvol

A missing set of braces around an error condition caused us to skip
zero'ing out the remainder of a new volume file if the new volume was
longer than the original (the goto was supposed to be taken only in
the case of error, but was always being taken).
src/storage/storage_backend.c