pwrite() ignores the file offset if the fd has O_APPEND set (with 2.6.20). http://www.opengroup.org/austin/mailarchives/ag/ msg09453.html suggests that it shouldn't ignore it. Could this be changed? For now I can of course just change the flag with fcntl().
I guess there aren't any limits to how large blocks write() accepts without the data being mixed with another process's writes (both with O_APPEND)? And I guess there aren't any horrible performance problems with this, so that this is actually a good idea compared to file lock + write() + unlock? :)
Attachment:
PGP.sig
Description: This is a digitally signed message part
- Prev by Date: Re: Reiser4. BEST FILESYSTEM EVER.
- Next by Date: Re: [RFD driver-core] Lifetime problems of the current driver model
- Previous by thread: [patch] nfs statfs error-handling fix
- Next by thread: Re: [RFD driver-core] Lifetime problems of the current driver model
- Index(es):