VisionFS has an independent component, called the lock daemon, which provides full Windows locking semantics. The lock daemon manages lock requests from Windows clients and maintains a lock database containing information about all file locks currently in place. When a client requests access to a file in a share, VisionFS consults the lock daemon for the availability of that file, and access is granted or denied as appropriate.
VisionFS provides three types of locks for clients to use with files:
Opportunistic locks give great performance benefits -- one user has complete control over the entire file at one time and can edit a local copy, only updating the file on the server immediately before the lock is removed.
However, opportunistic locks don't provide protection from simultaneous editing by a Windows user and a UNIX user.
You should use opportunistic locks in the following cases:
You shouldn't use opportunistic locks if the files in a share might be modified by both Windows clients and UNIX users.