summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2013-03-01 14:49:57 +0530
committerAnand Avati <avati@redhat.com>2013-03-05 16:38:30 -0800
commit16ce96c299c93e09b1c1ddceaa75399a7211a7d0 (patch)
tree536ecf35e0c5cf70fd68fa8b68360eca0eb9fd41 /libglusterfs
parent2398e1e0da61f4ec5f209c704e037b54b5c249e1 (diff)
nlm: use appropriate open flags while locking
In case of a shared/read lock, open the file in O_RDONLY mode, and in the case of an exclusive lock, open the file in O_WRONLY mode to emulate the behaviour posix fcntl implementation as given in the man pages. Change-Id: Ib9eab6570c3bc65f8bd48a14a9d801616213b295 BUG: 916930 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.org/4603 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions