RE: doubt about 99% of the cases if the first byte of the file is cached.
Ingo Molnar <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 23 Apr 2002, Liang Yang wrote: > Yes, Hard disk LED flashes for sometime even the server received the > request of the same 10MB file for the 3rd, 4th,5th time. [...] do you have the 'noatime' mount-option enabled? Otherwise the atime field will be updated on disk. > I know how to read the first byte of a specific file(set > req->desc.count=1 before I invoke do_generic_file_read ), but I don't > know how to read just the last byte of file. set in_file.f_pos to be inode->i_size-1, and use desc.count=1. Ingo