aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-06-17 21:02:12 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-06-17 21:02:12 -0400
commita14017db2852f9393a401a0f64053c331003babf (patch)
tree2b9b0859a6435ad4412882a6b469ed4c426136c5 /fs/nfs/internal.h
parent4fdcd9966d8469be26a6f12122ac21ffce19fc20 (diff)
NFS: add XDR decoder for mountd version 3 auth-flavor lists
Introduce an xdr_stream-based XDR decoder that can unpack the auth- flavor list returned in a MNT3 reply. The nfs_mount() function's caller allocates an array, and passes the size and a pointer to it. The decoder decodes all the flavors it can into the array, and returns the number of decoded flavors. If the caller is not interested in the auth flavors, it can pass a value of zero as the size of the pre-allocated array. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index e4d6a8348adf..0207758de44a 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -30,6 +30,12 @@ struct nfs_clone_mount {
30}; 30};
31 31
32/* 32/*
33 * Note: RFC 1813 doesn't limit the number of auth flavors that
34 * a server can return, so make something up.
35 */
36#define NFS_MAX_SECFLAVORS (12)
37
38/*
33 * In-kernel mount arguments 39 * In-kernel mount arguments
34 */ 40 */
35struct nfs_parsed_mount_data { 41struct nfs_parsed_mount_data {