All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tapdisk: Fix qcow2 for images > 2 GB
@ 2008-06-27 12:07 Kevin Wolf
  0 siblings, 0 replies; only message in thread
From: Kevin Wolf @ 2008-06-27 12:07 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 80 bytes --]

tapdisk: Fix qcow2 for images > 2 GB

Signed-off-by: Kevin Wolf <kwolf@suse.de>

[-- Attachment #2: 1xxxx-qcow2-2gb-bug.patch --]
[-- Type: text/x-patch, Size: 591 bytes --]

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;
 	}

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-27 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-27 12:07 [PATCH] tapdisk: Fix qcow2 for images > 2 GB Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.