summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/msg_prot.h
diff options
context:
space:
mode:
authorChuck Lever2009-08-09 21:09:31 +0200
committerTrond Myklebust2009-08-09 21:09:31 +0200
commit059f90b323c0f5d34656ab7e0548d7d033c2a51a (patch)
tree00886f92addd883a30f100219605c2c46eecb879 /include/linux/sunrpc/msg_prot.h
parentNFS: Add ability to send MOUNTPROC_UMNT to the kernel's mountd client (diff)
downloadkernel-qcow2-linux-059f90b323c0f5d34656ab7e0548d7d033c2a51a.tar.gz
kernel-qcow2-linux-059f90b323c0f5d34656ab7e0548d7d033c2a51a.tar.xz
kernel-qcow2-linux-059f90b323c0f5d34656ab7e0548d7d033c2a51a.zip
NFS: Fix auth flavor len accounting
Previous logic in the NFS mount parsing code path assumed auth_flavor_len was set to zero for simple authentication flavors (like AUTH_UNIX), and 1 for compound flavors (like AUTH_GSS). At some earlier point (maybe even before the option parsers were merged?) specific checks for auth_flavor_len being zero were removed from the functions that validate the mount option that sets the mount point's authentication flavor. Since we are populating an array for authentication flavors, the auth_flavor_len should always be set to the number of flavors. Let's eliminate some cleverness here, and prepare for new logic that needs to know the number of flavors in the auth_flavors[] array. (auth_flavors[] is an array because at some point we want to allow a list of acceptable authentication flavors to be specified via the sec= mount option. For now it remains a single element array). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/msg_prot.h')
0 files changed, 0 insertions, 0 deletions