Skip to content

Commit

Permalink
exfat regression fix (64-bit)
Browse files Browse the repository at this point in the history
After upgrading libexfat to a new version, 64-bit I/O was lost, here is
the fix.

Change-Id: I27382cbf474ce32297dfa0f7bd8036371ccfaef2
  • Loading branch information
andreya108 authored and Dees-Troy committed Jan 19, 2016
1 parent ba95ad1 commit f510988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exfat/libexfat/io.c
Expand Up @@ -298,7 +298,7 @@ loff_t exfat_seek(struct exfat_dev* dev, loff_t offset, int whence)
/* XXX SEEK_CUR will be handled incorrectly */
return dev->pos = lseek(dev->fd, offset, whence);
#else
return lseek(dev->fd, offset, whence);
return lseek64(dev->fd, offset, whence);
#endif
}

Expand Down Expand Up @@ -332,7 +332,7 @@ ssize_t exfat_pread(struct exfat_dev* dev, void* buffer, size_t size,
#ifdef USE_UBLIO
return ublio_pread(dev->ufh, buffer, size, offset);
#else
return pread(dev->fd, buffer, size, offset);
return pread64(dev->fd, buffer, size, offset);
#endif
}

Expand All @@ -342,7 +342,7 @@ ssize_t exfat_pwrite(struct exfat_dev* dev, const void* buffer, size_t size,
#ifdef USE_UBLIO
return ublio_pwrite(dev->ufh, buffer, size, offset);
#else
return pwrite(dev->fd, buffer, size, offset);
return pwrite64(dev->fd, buffer, size, offset);
#endif
}

Expand Down

0 comments on commit f510988

Please sign in to comment.