On Mon, 11 Sep 2000, Andi Kleen wrote:

> > Passing an update_fpos boolean would be so much cleaner.
> 
> An update_fpos boolean only would require that pread/pwrite create their own
> file structure to pass in the user offset.

Ok, true, I didn't think of that. But then passing the boolean in
*addition* to the pointer to fpos would allow the stackable filesystem to
detect the pread() case cleanly and thus to handle it correctly without
hackery like the one I described.

The main problem with the stackable fs is that is has two halves, one
filesystem-like and one VFS-like. The VFS half must know how the
filesystem half was called, so it can call the underlying filesystem's
read() method in the same way.

Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]

Reply via email to