kernel-ark/fs/nfs
Trond Myklebust d530838bfa NFSv4: Fix problem with OPEN_DOWNGRADE
RFC 3530 states that for OPEN_DOWNGRADE "The share_access and share_deny
 bits specified must be exactly equal to the union of the share_access and
 share_deny bits specified for some subset of the OPENs in effect for
 current openowner on the current file.

 Setattr is currently violating the NFSv4 rules for OPEN_DOWNGRADE in that
 it may cause a downgrade from OPEN4_SHARE_ACCESS_BOTH to
 OPEN4_SHARE_ACCESS_WRITE despite the fact that there exists no open file
 with O_WRONLY access mode.

 Fix the problem by replacing nfs4_find_state() with a modified version of
 nfs_find_open_context().

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2005-11-04 15:33:38 -05:00
..
callback_proc.c
callback_xdr.c
callback.c
callback.h
delegation.c NFSv4: Return delegation upon rename or removal of file. 2005-10-18 14:20:19 -07:00
delegation.h NFSv4: Return delegation upon rename or removal of file. 2005-10-18 14:20:19 -07:00
dir.c NFS: Ensure that nfs_link() instantiates the dentry correctly 2005-10-27 22:12:42 -04:00
direct.c
file.c NFS: Optimise attribute revalidation on close(). 2005-10-27 22:12:41 -04:00
idmap.c
inode.c NFSv4: Fix problem with OPEN_DOWNGRADE 2005-11-04 15:33:38 -05:00
Makefile
mount_clnt.c
nfs2xdr.c NFS: Optimise inode attribute cache updates 2005-10-27 22:12:39 -04:00
nfs3acl.c
nfs3proc.c NFS: Don't let nfs_end_data_update() clobber attribute update information 2005-10-27 22:12:39 -04:00
nfs3xdr.c NFS: Optimise inode attribute cache updates 2005-10-27 22:12:39 -04:00
nfs4_fs.h NFSv4: Fix problem with OPEN_DOWNGRADE 2005-11-04 15:33:38 -05:00
nfs4proc.c NFSv4: Fix problem with OPEN_DOWNGRADE 2005-11-04 15:33:38 -05:00
nfs4renewd.c
nfs4state.c NFSv4: Fix problem with OPEN_DOWNGRADE 2005-11-04 15:33:38 -05:00
nfs4xdr.c NFSv4: Convert unnecessary XDR warning messages into dprintk() 2005-10-27 22:12:45 -04:00
nfsroot.c
pagelist.c
proc.c NFS: Don't let nfs_end_data_update() clobber attribute update information 2005-10-27 22:12:39 -04:00
read.c NFSv4: Fix problem with OPEN_DOWNGRADE 2005-11-04 15:33:38 -05:00
symlink.c
unlink.c
write.c NFSv4: Fix problem with OPEN_DOWNGRADE 2005-11-04 15:33:38 -05:00