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

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

diff -u --recursive --new-file v2.1.125/linux/include/linux/nfsd/syscall.h linux/include/linux/nfsd/syscall.h
@@ -32,8 +32,8 @@
 #define NFSCTL_EXPORT		3	/* export a file system. */
 #define NFSCTL_UNEXPORT		4	/* unexport a file system. */
 #define NFSCTL_UGIDUPDATE	5	/* update a client's uid/gid map. */
-#define NFSCTL_GETFH		6	/* get an fh (used by mountd) */
-
+#define NFSCTL_GETFH		6	/* get an fh by ino (used by mountd) */
+#define NFSCTL_GETFD		7	/* get an fh by path (used by mountd) */
 
 /* SVC */
 struct nfsctl_svc {
@@ -81,6 +81,13 @@
 	int			gf_version;
 };
 
+/* GETFD */
+struct nfsctl_fdparm {
+	struct sockaddr		gd_addr;
+	char			gd_path[NFS_MAXPATHLEN+1];
+	int			gd_version;
+};
+
 /*
  * This is the argument union.
  */
@@ -92,6 +99,7 @@
 		struct nfsctl_export	u_export;
 		struct nfsctl_uidmap	u_umap;
 		struct nfsctl_fhparm	u_getfh;
+		struct nfsctl_fdparm	u_getfd;
 		unsigned int		u_debug;
 	} u;
 #define ca_svc		u.u_svc
@@ -99,6 +107,7 @@
 #define ca_export	u.u_export
 #define ca_umap		u.u_umap
 #define ca_getfh	u.u_getfh
+#define ca_getfd	u.u_getfd
 #define ca_authd	u.u_authd
 #define ca_debug	u.u_debug
 };

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov