NFSv4: Save the owner/group name string when doing open
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 7 Jan 2012 18:22:46 +0000 (13:22 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 7 Jan 2012 18:22:46 +0000 (13:22 -0500)
commit6926afd1925a54a13684ebe05987868890665e2b
tree14dd0c00c757277d6f28b732c08206376e6dbf31
parente2fecb215b321db0e4a5b2597349a63c07bec42f
NFSv4: Save the owner/group name string when doing open

...so that we can do the uid/gid mapping outside the asynchronous RPC
context.
This fixes a bug in the current NFSv4 atomic open code where the client
isn't able to determine what the true uid/gid fields of the file are,
(because the asynchronous nature of the OPEN call denies it the ability
to do an upcall) and so fills them with default values, marking the
inode as needing revalidation.
Unfortunately, in some cases, the VFS will do some additional sanity
checks on the file, and may override the server's decision to allow
the open because it sees the wrong owner/group fields.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/idmap.c
fs/nfs/inode.c
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_idmap.h
include/linux/nfs_xdr.h