From: Goswin v. B. <gos...@we...> - 2008-08-07 11:29:09
|
"Aditya Rajgarhia" <adi...@gm...> writes: > Is the current file position set by FUSE daemon in the offset parameter for > read/write() then? I did notice that parameter in FUSE which is not part of > the system calls but didn't realize it may be for this purpose. If that's > the case it would explain my confusion, which is that filesystems built on > FUSE may need to do additional housekeeping when the file position is moved > using lseek(), but if the position is passed to read/write() the work can be > done there instead. > > Thanks for your reply -- let me know if my understanding is still incorrect! > > -Aditya What fuse actualy implements is ssize_t pread(int fd, void *buf, size_t count, off_t offset); ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); MfG Goswin |