64-bit RES_SEEK_POS

Change-Id: Id13f06417f2f600db167bec7b33bc825742cae79
This commit is contained in:
Ben Gras
2014-02-24 16:54:37 +01:00
committed by Lionel Sambuc
parent 978082bb0d
commit fdd85c4d08
10 changed files with 21 additions and 38 deletions

View File

@@ -98,7 +98,7 @@ int fs_readwrite(void)
if (r != OK) return(EINVAL);
fs_m_out.RES_SEEK_POS_LO = pos + bytes_done;
fs_m_out.RES_SEEK_POS = pos + bytes_done;
fs_m_out.RES_NBYTES = bytes_done;
return(r);
@@ -172,7 +172,7 @@ int fs_getdents(void)
update_timens(pn, ATIME, NULL);
fs_m_out.RES_NBYTES = written;
fs_m_out.RES_SEEK_POS_LO = pos;
fs_m_out.RES_SEEK_POS = pos;
return(OK);
}

View File

@@ -67,8 +67,7 @@ int do_read(void)
if (r < 0)
return r;
m_out.RES_SEEK_POS_HI = ex64hi(pos);
m_out.RES_SEEK_POS_LO = ex64lo(pos);
m_out.RES_SEEK_POS = pos;
m_out.RES_NBYTES = off;
return OK;
@@ -229,8 +228,7 @@ int do_getdents(void)
user_off += off;
}
m_out.RES_SEEK_POS_HI = 0;
m_out.RES_SEEK_POS_LO = pos;
m_out.RES_SEEK_POS = pos;
m_out.RES_NBYTES = user_off;
return OK;

View File

@@ -103,8 +103,7 @@ int do_write(void)
if ((r = write_file(ino, &pos, &count, &grant)) != OK)
return r;
m_out.RES_SEEK_POS_HI = ex64hi(pos);
m_out.RES_SEEK_POS_LO = ex64lo(pos);
m_out.RES_SEEK_POS = pos;
m_out.RES_NBYTES = count;
return OK;

View File

@@ -57,8 +57,7 @@ int fs_read(void)
}
if (r == OK) {
fs_m_out.RES_SEEK_POS_HI = 0;
fs_m_out.RES_SEEK_POS_LO = pos + len;
fs_m_out.RES_SEEK_POS = pos + len;
fs_m_out.RES_NBYTES = len;
}
@@ -207,8 +206,7 @@ int fs_getdents(void)
user_off += off;
}
fs_m_out.RES_SEEK_POS_HI = 0;
fs_m_out.RES_SEEK_POS_LO = pos;
fs_m_out.RES_SEEK_POS = pos;
fs_m_out.RES_NBYTES = user_off;
return OK;