|
qemu-img for vmdk4 images.
In versions previous to 0.13.0 this code used lseek to seek to offset
and read instead of pread. The lseek only happened when offset was >=0
with the change to pread the logic for checking whether offset was
negative was lost which broke vmdk4 support. This offset check here
will have the same result as the old (working) code.
The upstream qemu commit that broke this functionality was:
commit 4899d10d142e97eea8f64141a3507b2ee1a64f52
Author: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Date: Mon Apr 19 13:34:11 2010 +0100
and the code has been confirmed to still be broken in qemu 0.15.0rc0
|