NFS: Attempt mount with default sec flavor first
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 13 Apr 2011 18:31:30 +0000 (14:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 13 Apr 2011 19:12:23 +0000 (15:12 -0400)
commit801a16dc7b5c146f7980a0c61c30cef3ba93344d
tree959e354fe7e13525efa8e4313176550dbcc3fe99
parent0fabee243a2c6edd66284a4d8948ccbe6727e3bb
NFS: Attempt mount with default sec flavor first

nfs4_lookup_root() is already configured to use either RPC_AUTH_UNIX
or a user specified flavor (through -o sec=<whatever>).  We should
use this flavor first, and only attempt negotiation if it fails
with -EPERM.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c