aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorManoj Naik <manoj@almaden.ibm.com>2006-06-09 09:34:23 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-09 09:34:23 -0400
commit7aaa0b3bd4d215d9ce4d62b6c2043a63ba650f93 (patch)
tree122b502bc56a00dcb60d2de211e5ea6eeac9e028 /include/linux/nfs_xdr.h
parent683b57b435326eb512c7305892683b6205669448 (diff)
NFSv4: convert fs-locations-components to conform to RFC3530
Use component4-style formats for decoding list of servers and pathnames in fs_locations. Signed-off-by: Manoj Naik <manoj@almaden.ibm.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 15a20b815302..d6eea8348728 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -679,21 +679,31 @@ struct nfs4_server_caps_res {
679 u32 has_symlinks; 679 u32 has_symlinks;
680}; 680};
681 681
682struct nfs_fs_location { 682struct nfs4_string {
683 unsigned int serverlen; 683 unsigned int len;
684 char * server; 684 char *data;
685 unsigned int rootpathlen;
686 char * rootpath;
687}; 685};
688 686
689#define NFS_FS_LOCATIONS_MAXENTRIES 10 687#define NFS4_PATHNAME_MAXCOMPONENTS 512
690struct nfs_fs_locations { 688struct nfs4_pathname {
689 unsigned int ncomponents;
690 struct nfs4_string components[NFS4_PATHNAME_MAXCOMPONENTS];
691};
692
693#define NFS4_FS_LOCATION_MAXSERVERS 10
694struct nfs4_fs_location {
695 unsigned int nservers;
696 struct nfs4_string servers[NFS4_FS_LOCATION_MAXSERVERS];
697 struct nfs4_pathname rootpath;
698};
699
700#define NFS4_FS_LOCATIONS_MAXENTRIES 10
701struct nfs4_fs_locations {
691 struct nfs_fattr fattr; 702 struct nfs_fattr fattr;
692 const struct nfs_server *server; 703 const struct nfs_server *server;
693 unsigned int fs_pathlen; 704 struct nfs4_pathname fs_path;
694 char * fs_path;
695 int nlocations; 705 int nlocations;
696 struct nfs_fs_location locations[NFS_FS_LOCATIONS_MAXENTRIES]; 706 struct nfs4_fs_location locations[NFS4_FS_LOCATIONS_MAXENTRIES];
697}; 707};
698 708
699struct nfs4_fs_locations_arg { 709struct nfs4_fs_locations_arg {