[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File Semaphore in LMFS

Seems to me it should work to open some file name in mode :IF-EXISTS
NIL :IF-DOES-NOT-EXIST :CREATE .  If you get NIL, wait a while and try
again.  When you're done, delete the file.

Hmm.  Depending on how it's implemented, this could have a timing
window if two people try to create the file at the same time.  The way
to find out would be to do this operation across the network and see
if you see "Probe" in the whostate before "Open".  Best if the server
machine has not had its LMFS accessed in a long time, so paging will
slow things down to where you can see them.

Alternatively, you could try and read the sources...

-- Scott