[PATCH] add pread operation to vfs layer

Cole, Timothy D. t.cole at ngc.com
Tue Dec 16 23:27:47 GMT 2003

I wrote:
> Would it be feasible to cache the effective and actual file 
> offsets for a
> file descriptor, to reduce the number of seeks needed for sequential
> pwrites/preads?

Thinking about it, those offsets would likely have to be stored in the
files_struct -- that's okay provided an fd with a files_struct attached can
only ever be read/written/lsought via that single files_struct.

Is that a safe assumption to make, though?

More information about the samba-technical mailing list