Bug 803637

Summary: nfs-nlm: lock not honoured if tried from different clients on same file
Product: [Community] GlusterFS Reporter: Saurabh <saujain>
Component: nfsAssignee: Vinayaga Raman <vraman>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: gluster-bugs, mzywusko, rwheeler, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-02 06:26:07 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Saurabh 2012-03-15 06:28:21 EDT
Description of problem:
mounted the same file on different clients and then tried to put up the exclusive  lock on same region of single file. both of them were able to hold the lock.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. nfs mount a volume on two different clients
2. try to put the lock on same region of same file 
Actual results:
the lock is simultaneously acquired

Expected results:
if lock is already held then other other should as lock mechanism used in script is blocking locks.

Additional info:
Comment 1 Krishna Srinivas 2012-03-19 08:03:51 EDT
Just confirmed with Saurabh that there was a problem with the test script. Exclusive locking is working fine.