diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-08-03 21:14:23 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-08-03 21:14:23 +0000 |
commit | d5249393efe472d50eb027e286566a57ba868bf2 (patch) | |
tree | 9b2d458d5b8ffa815b2b2b007ca44d448d334cff /block-cow.c | |
parent | 11c0315f9bd7d5e0e368f058c4ea58fb6c798728 (diff) | |
download | qemu-d5249393efe472d50eb027e286566a57ba868bf2.zip qemu-d5249393efe472d50eb027e286566a57ba868bf2.tar.gz qemu-d5249393efe472d50eb027e286566a57ba868bf2.tar.bz2 |
64 bit file I/O by default
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1040 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-cow.c')
-rw-r--r-- | block-cow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block-cow.c b/block-cow.c index ab62c2a..affeefa 100644 --- a/block-cow.c +++ b/block-cow.c @@ -173,7 +173,7 @@ static int cow_read(BlockDriverState *bs, int64_t sector_num, while (nb_sectors > 0) { if (is_changed(s->cow_bitmap, sector_num, nb_sectors, &n)) { - lseek64(s->fd, s->cow_sectors_offset + sector_num * 512, SEEK_SET); + lseek(s->fd, s->cow_sectors_offset + sector_num * 512, SEEK_SET); ret = read(s->fd, buf, n * 512); if (ret != n * 512) return -1; @@ -193,7 +193,7 @@ static int cow_write(BlockDriverState *bs, int64_t sector_num, BDRVCowState *s = bs->opaque; int ret, i; - lseek64(s->fd, s->cow_sectors_offset + sector_num * 512, SEEK_SET); + lseek(s->fd, s->cow_sectors_offset + sector_num * 512, SEEK_SET); ret = write(s->fd, buf, nb_sectors * 512); if (ret != nb_sectors * 512) return -1; |