locktest: add a F_GETLK vs. openmode test
authorJeff Layton <jlayton@poochiereds.net>
Tue, 13 May 2014 05:30:24 +0000 (15:30 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 13 May 2014 05:30:24 +0000 (15:30 +1000)
commit10fd79a6fb2950caaa9e4d09f68bbd1a7aedf586
tree40c6bef3b41ea9f4f63f857a23849e1893ef6f91
parentfe7056d6d319b64e132aebc4429a094a7da513be
locktest: add a F_GETLK vs. openmode test

POSIX says that you're allowed to do F_GETLK for a F_WRLCK on an
O_RDONLY file description.

Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/locktest.c