]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: verify open flags before allowing an atomic open
authorJeff Layton <jlayton@redhat.com>
Fri, 2 Aug 2013 15:39:32 +0000 (11:39 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 7 Aug 2013 16:16:22 +0000 (12:16 -0400)
commitcd7d9e6072f022b7dc53a3add0c8b148fd64f74c
treefb1ba832c4654b68b85198ca8f1fed86045f55e3
parent74368a86efd3f5d25e058b164e03e8bf8e48d6e3
nfs: verify open flags before allowing an atomic open

Currently, you can open a NFSv4 file with O_APPEND|O_DIRECT, but cannot
fcntl(F_SETFL,...) with those flags. This flag combination is explicitly
forbidden on NFSv3 opens, and it seems like it should also be on NFSv4.

Reported-by: Chao Ye <cye@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c