summaryrefslogtreecommitdiffstats
path: root/tests/basic/file-snapshot.t
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2015-07-10 12:40:24 +0530
committerRaghavendra G <rgowdapp@redhat.com>2016-02-25 01:34:56 -0800
commite410c3a0c97a7bfe109badba5b6a5dd094016995 (patch)
treea1d691865fc39bb11ecccd8d81327e9542f78dac /tests/basic/file-snapshot.t
parent5bfd22123753fb88c1a2ea91ffd4f6767d89f278 (diff)
locks: Handle negative values for flock->l_len
As per 'man 3 fcntl', "If l_len is positive, the area affected shall start at l_start and end at l_start+l_len−1. If l_len is negative, the area affected shall start at l_start+l_len and end at l_start−1. Locks may start and extend beyond the current end of a file, but shall not extend before the beginning of the file." Currently we return EINVAL if l_len is found to be negative. Fixed the same as mentioned in the man page. Change-Id: I493ce202c543185fc4ae7266d1aaf9d7e2a66991 BUG: 1241104 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/11613 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'tests/basic/file-snapshot.t')
0 files changed, 0 insertions, 0 deletions