Skip to content
Snippets Groups Projects
Commit 49853fa1 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch b1_4

Use 64-bit variable for libsysio lseek64() internal return value.
Update liblustre sanity.c to use 64-bit IO functions where needed.
b=7279
parent 20fcbb90
No related branches found
No related tags found
No related merge requests found
......@@ -121,13 +121,13 @@ extern off64_t
SYSIO_INTERFACE_NAME(lseek64)(int fd, off64_t offset, int whence)
{
_SYSIO_OFF_T off;
off_t rtn;
off64_t rtn;
SYSIO_INTERFACE_DISPLAY_BLOCK;
SYSIO_INTERFACE_ENTER;
off = _sysio_lseek(fd, offset, whence);
if (off < 0)
SYSIO_INTERFACE_RETURN((off_t )-1, (int )off);
SYSIO_INTERFACE_RETURN((off64_t )-1, (int )off);
rtn = (off64_t )off;
assert(rtn == off);
SYSIO_INTERFACE_RETURN(rtn, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment