Need help with lockf(),open(..., O_SYNC), fsync() on SUN's

Scott Lurndal scott at convergent.com
Fri Mar 22 06:13:02 AEST 1991


In article <1991Mar20.205800.14651 at agate.berkeley.edu>, bks at alfa.berkeley.edu (Brad Sherman)
writes:
|> [If this is the wrong group, I apologize and would appreciate a
|> pointer to the right one.]
|> 

  [ explanation of problem wrt sync over NFS ]

|> The locking/unlocking of file1 (and blocking caused by it) works fine.
|> Adding an O_SYNC (on sparc's) to the open() calls does not help.
|> No other processes are touching file1 or file2.
|> This is with the standard SUN distributed C compilers and libraries.
|> 
|> Are we doing something wrong here?
Yes, you are using NFS.   Data on the client is not guaranteed to be 
fresh.  (i.e. you may get stale data)
|> -------------------------------
|> 	Brad Sherman (bks at alfa.berkeley.edu)
scott



More information about the Comp.unix.wizards mailing list