[LCP]Checking for local filesystem (or: safe locking)

Jack Lloyd lloyd at acm.jhu.edu
Wed Jul 17 00:35:06 UTC 2002


On Tue, 16 Jul 2002, Greg Black wrote:

> Jack Lloyd wrote:
>
> | Problem:
> |
> | We need to do some kind of locking such that one server runs over a
> | particular set of files (in this case, a source code repository). More than
> | one server can run, just not over the same repository.
> |
> | Current Solution:
> |
> | Do a lock file. It works, but only on a local filesystem (since we depend
> | on good timestamps and whatnot).
> |
> | New Problem:
> |
> | Need to make sure that the repository is on a local filesystem.
> |
> | Current Solution:
> | [elided]
>
> Surely the simple solution is to write a network lock server
> (which would take a couple of hours) or grab one from somewhere
> (which might take even less time).  Then you can forget about
> special cases for different platforms and file systems.

Probably. Various reasons prevented me from doing anything like that before
now, but since as of today I am the lead on this project I guess I can do
whatever the hell I want (well, within some bounds of sanity).
 -Jack





More information about the linuxCprogramming mailing list