patch-2.3.51 linux/include/linux/nfsd/syscall.h

Next file: linux/include/linux/nfsd/xdr.h
Previous file: linux/include/linux/nfsd/nfsfh.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/include/linux/nfsd/syscall.h linux/include/linux/nfsd/syscall.h
@@ -37,6 +37,7 @@
 #define NFSCTL_UGIDUPDATE	5	/* update a client's uid/gid map. */
 #define NFSCTL_GETFH		6	/* get an fh by ino (used by mountd) */
 #define NFSCTL_GETFD		7	/* get an fh by path (used by mountd) */
+#define	NFSCTL_GETFS		8	/* get an fh by path with max FH len */
 
 /* SVC */
 struct nfsctl_svc {
@@ -91,6 +92,13 @@
 	int			gd_version;
 };
 
+/* GETFS - GET Filehandle with Size */
+struct nfsctl_fsparm {
+	struct sockaddr		gd_addr;
+	char			gd_path[NFS_MAXPATHLEN+1];
+	int			gd_maxlen;
+};
+
 /*
  * This is the argument union.
  */
@@ -103,6 +111,9 @@
 		struct nfsctl_uidmap	u_umap;
 		struct nfsctl_fhparm	u_getfh;
 		struct nfsctl_fdparm	u_getfd;
+#ifdef notyet
+		struct nfsctl_fsparm	u_getfs;
+#endif
 		unsigned int		u_debug;
 	} u;
 #define ca_svc		u.u_svc
@@ -111,12 +122,16 @@
 #define ca_umap		u.u_umap
 #define ca_getfh	u.u_getfh
 #define ca_getfd	u.u_getfd
+#define	ca_getfs	u.u_getfs
 #define ca_authd	u.u_authd
 #define ca_debug	u.u_debug
 };
 
 union nfsctl_res {
-	struct knfs_fh		cr_getfh;
+	__u8			cr_getfh[NFS_FHSIZE];
+#ifdef notyet
+	struct knfsd_fh		cr_getfs;
+#endif
 	unsigned int		cr_debug;
 };
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)