[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tapdisk: Fix qcow2 for images > 2 GB



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1214571832 -3600
# Node ID baf3cc0faffc51a6a2619ddf665b12ab0963c868
# Parent  e5ae980fe3372dc195cdc7e39c299a4815067ab1
tapdisk: Fix qcow2 for images > 2 GB

Signed-off-by: Kevin Wolf <kwolf@xxxxxxx>
---
 tools/blktap/drivers/block-qcow2.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)

diff -r e5ae980fe337 -r baf3cc0faffc tools/blktap/drivers/block-qcow2.c
--- a/tools/blktap/drivers/block-qcow2.c        Fri Jun 27 13:45:55 2008 +0100
+++ b/tools/blktap/drivers/block-qcow2.c        Fri Jun 27 14:03:52 2008 +0100
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.