ntrishal@in.ibm.com has uploaded this change for review.

View Change

locktest does not handle EACCES error for fcntl() F_SETLK operation

If a conflicting lock is held, F_SETLK returns -1 and sets errno to
EACCES or EAGAIN. Only EAGAIN was being handled by the client
program, causing failures on different implementations for NLM_DENIED
POSIX requires a portable application to check for both errors.

Change-Id: Ibfe9d073fa1b3f73d9a54ceea76a9ddc347a9f67
Signed-off-by: Trishali Nayar <ntrishal@in.ibm.com>
---
M src/tools/multilock/ml_posix_client.c
1 file changed, 4 insertions(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/08/442508/1

To view, visit change 442508. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ibfe9d073fa1b3f73d9a54ceea76a9ddc347a9f67
Gerrit-Change-Number: 442508
Gerrit-PatchSet: 1
Gerrit-Owner: ntrishal@in.ibm.com
Gerrit-MessageType: newchange