Ok. While I am at it, I checked out the man page of
open and it contains this paragraph about O_APPEND
O_APPEND
    The file is opened  in  append  mode.  Before 
each
    write, the file pointer is positioned at the end
of
    the file, as if with lseek.  O_APPEND may  lead 
to
    corrupted  files  on  NFS file systems if more
than
    one process appends data to a file at  once.  
This
    is  because  NFS  does  not  support appending to
a
    file, so the client  kernel  has  to  simulate 
it,
    which can't be done without a race condition.
Does that mean squid may not work well if the swap is
in NFS? Would it be better if we do lseek(fd, offset,
SEEK_END) instead of O_APPEND?
Cheers,
Yee Man
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
Received on Fri Jul 05 2002 - 00:09:56 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:45 MST