I am trying to read a bunch of files from my dos formated ramdrive on
a board and then transfer them through ftp on a remote site.

The problem I am facing is that the read call to the ramdrive fails
with random error codes. It gives me error codes 0,4,9 or 60 (NOTSET,
EINTR, EBADF, ETIMEDOUT). The read operation generally fails on third
or fourth file read. In some rare cases it also fails on 1st file
read, and in rarer cases everything works fine.

This RAM area is not being touched by any other process and since the
files were just written to this area prior to read hence the memory is
also accessible

Any help would be appreciated.