Make the cow file size equal to the original media
authorNikos Skalkotos <skalkoto@grnet.gr>
Fri, 24 Aug 2012 09:48:18 +0000 (12:48 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Fri, 24 Aug 2012 09:48:18 +0000 (12:48 +0300)
commit8fed77f7fce8dd2d4793e9300b8aee904b00bdc3
tree6e09781a31e3ffa21a03209843c2a9cec0ac8e8e
parenta95930f8f08245d20efd5fa603281b5250dd4c70
Make the cow file size equal to the original media

The size of the cow file was hardcoded to 1G. This was buggy, because
for a big image, the resize operation could fill up the cow file and
fail.
image_creator/disk.py