The invention provides a method and system for connect interoperation of
multiple diverse file server or file locking protocols, using a uniform
multi-protocol lock management system. A file server determines, before
allowing any client device to access data or to obtain a lock, whether
that would be inconsistent with existing locks, regardless of originating
client device or originating protocol for those existing locks. A first
protocol enforces mandatory file-open and file-locking together with an
opportunistic file-locking technique, while a second protocol lacks
file-open semantics and provides only for advisory byte-range and file
locking.