[LTP] [PATCH] syscalls/flock: open test file with O_RDWR mode

Jan Stancek jstancek@redhat.com
Wed Jun 7 12:58:11 CEST 2017



----- Original Message -----
> On Thu, May 18, 2017 at 01:09:56AM +0800, Eryu Guan wrote:
> > NFS requires the open mode to match the lock type, i.e. for LOCK_SH
> > file must be opened for read, and for LOCK_EX file must be opened
> > for write. Otherwise flock01 and flock04 fail on NFS with EBADF.
> > 
> > So open all test files in flock tests with O_RDWR mode that both
> > lock type requirements can be met.
> > 
> > Signed-off-by: Eryu Guan <eguan@redhat.com>
> 
> ping on this one.

Pushed.

Thanks,
Jan


More information about the ltp mailing list