64-bit RES_SEEK_POS
Change-Id: Id13f06417f2f600db167bec7b33bc825742cae79
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user