[OpenAFS] flock on AFS files

2008-10-27 Thread Hans-Werner Paulsen
Hello, today I am totally confused how the flock(2) call should work on AFS files. Normally locking works in the following way: 1fd = open(afs-file,O_RDWR) do something 2flock(fd,LOCK_EX) do something with afs-file 3flock(fd,LOCK_UN) do something

Re: [OpenAFS] flock on AFS files

2008-10-27 Thread Todd M. Lewis
I've got quite a bit of code that does flock() on files in AFS, but I've always worked under the assumption that this would only work if a single client is doing the writing. I don't recall whether that assumption was based on empirical testing, reading it somewhere, or being told. In those