|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] tapdisk: Fix qcow2 for images > 2 GB
tapdisk: Fix qcow2 for images > 2 GB
Signed-off-by: Kevin Wolf <kwolf@xxxxxxx>
Index: xen-3.3.0-testing/tools/blktap/drivers/block-qcow2.c
===================================================================
--- xen-3.3.0-testing.orig/tools/blktap/drivers/block-qcow2.c
+++ xen-3.3.0-testing/tools/blktap/drivers/block-qcow2.c
@@ -254,10 +254,7 @@ static int bdrv_pread(int fd, int64_t of
*/
static int bdrv_pwrite(int fd, int64_t offset, const void *buf, int count)
{
- int ret;
-
- ret = lseek(fd, offset, SEEK_SET);
- if (ret != offset) {
+ if (lseek(fd, offset, SEEK_SET) == -1) {
DPRINTF("bdrv_pwrite failed seek (%#"PRIx64").\n", offset);
return -1;
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] tapdisk: Fix qcow2 for images > 2 GB,
Kevin Wolf <=
|
|
|
|
|