64-bit RES_SEEK_POS
Change-Id: Id13f06417f2f600db167bec7b33bc825742cae79
This commit is contained in:
+3
-4
@@ -113,7 +113,7 @@ int fs_readwrite(void)
|
||||
position += (off_t) chunk; /* position within the file */
|
||||
}
|
||||
|
||||
fs_m_out.RES_SEEK_POS_LO = position; /* It might change later and the VFS
|
||||
fs_m_out.RES_SEEK_POS = position; /* It might change later and the VFS
|
||||
has to know this value */
|
||||
|
||||
/* On write, update file size and access time. */
|
||||
@@ -199,8 +199,7 @@ int fs_breadwrite(void)
|
||||
position += chunk; /* position within the file */
|
||||
}
|
||||
|
||||
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
|
||||
fs_m_out.RES_SEEK_POS_HI = ex64hi(position);
|
||||
fs_m_out.RES_SEEK_POS = position;
|
||||
|
||||
if (lmfs_rdwt_err() != OK) r = lmfs_rdwt_err(); /* check for disk error */
|
||||
if (lmfs_rdwt_err() == END_OF_FILE) r = OK;
|
||||
@@ -731,7 +730,7 @@ int fs_getdents(void)
|
||||
r = EINVAL; /* The user's buffer is too small */
|
||||
else {
|
||||
fs_m_out.RES_NBYTES = userbuf_off;
|
||||
fs_m_out.RES_SEEK_POS_LO = new_pos;
|
||||
fs_m_out.RES_SEEK_POS = new_pos;
|
||||
if(!rip->i_sp->s_rd_only) {
|
||||
rip->i_update |= ATIME;
|
||||
IN_MARKDIRTY(rip);
|
||||
|
||||
Reference in New Issue
Block a user