On Fri, Mar 04, 2005 at 03:15:42PM -0600, sharif islam
wrote:> Is file locking dependent on the editor or we can control it via the
> oplocks option? here's the scenario: I usually use vi from the
> console. However, some of my colleagues might work on the same file
> from the windows machine using notepad, Jedit, dreamweaver etc. What
> is the best way to lock files?
You need an oplock-aware kernel and applications that are locking-aware
of each other (ie. POSIX apps that attempt to get an advisory fcntl lock
over any region the read/write). I don't know of any posix apps that do
this (certainly not vi).
Jeremy.