Bug 761935 (GLUSTER-203) - posix_lock_to_flock logic is reversed
Summary: posix_lock_to_flock logic is reversed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-203
Product: GlusterFS
Classification: Community
Component: locks
Version: mainline
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Vikas Gorur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-11 10:27 UTC by Vikas Gorur
Modified: 2009-09-03 12:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Vikas Gorur 2009-08-11 10:27:24 UTC
If a lock's fl_end is LLONG_MAX, then the corresponding flock's len should be zero. Current code sets it to LLONG_MAX if fl_end is 0.

Comment 1 Vikas Gorur 2009-09-03 09:33:44 UTC
http://patches.gluster.com/patch/1009/ (features/locks: Fix reverse logic in posix_lock_to_flock) in mainline


Note You need to log in before you can comment on or make changes to this bug.