diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-08-31 12:26:57 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-09 17:31:26 -0500 |
commit | ea80b906f445969a5ccc781beb4e8bb7f60bbdbb (patch) | |
tree | 979c101bddb9b7561484c721a6fd301112e60efc /x86_64.ld | |
parent | 3aefa744551f3e9a4ea8776b607e77e99637d2e1 (diff) | |
download | qemu-ea80b906f445969a5ccc781beb4e8bb7f60bbdbb.zip qemu-ea80b906f445969a5ccc781beb4e8bb7f60bbdbb.tar.gz qemu-ea80b906f445969a5ccc781beb4e8bb7f60bbdbb.tar.bz2 |
qcow2: Fix metadata preallocation
The wrong version of the preallocation patch has been applied, so this is the
remaining diff.
We can't use truncate to grow the image file to the right size because we don't
know if metadata has been written after the last data cluster. In this case
truncate would shrink the file and destroy its metadata. Write a zero sector at
the end of the virtual disk instead to ensure that the file is big enough.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'x86_64.ld')
0 files changed, 0 insertions, 0 deletions