in reply to Re^2: Writing to a log file without colliding
in thread Writing to a log file without colliding

I don't know if I've been led correctly on the point but I believe lock-file creation/destruction isn't enough. I think a lock-dir creation/destruction is best for NFS situations (better atomicity from what I've been told).

  • Comment on Re^3: Writing to a log file without colliding

Replies are listed 'Best First'.
Re^4: Writing to a log file without colliding
by amw1 (Friar) on Aug 18, 2004 at 14:42 UTC
    locking over NFS is usually pretty sketchy regardless of wether it's a lock on a file or a directory. Unix really doesn't make a huge distinction between a file and a directory anyway, so the atomicness (I love making up words) of a lock on a file vs. directory should be the same.

    There are some NFS server appliances that don't use a unix file system (NetApp for one) where the atomicness may differ a bit.

    It's been quite a long time since I've played with anything other than sharing home directories on NFS so some of my thinking is most likely dated. :)