summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2003-03-23 03:29:30 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-03-23 03:29:30 -0800
commit78d1271692e59388a9bf707fcf2d57a8f2bf0400 (patch)
tree86ec162dd5da93f2d9c0225a5d7edfe9060b9692 /include/linux
parent8bc68ca891752bbb07a198215a9c1ebaedf90ada (diff)
[PATCH] Remove obsolete NFSD syscall varients.
Three varients of the NFSD system call use __kernel_* types in defining the arg, which is bad: these types should not be exposed to userspace. Particularly as __kernel_dev_t might change soon. Two of the varients, getfh and uidmap, are not implemented, getfh is deprecated and uidmap never was and never will be implemented. This patch removes (almost) all trace of these two varients, including all the 32bit-compat system call translators for various 64bit platforms. The third varient that uses __kernel_* types, export, is not so easy to deal with, so it will be kept for later.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfsd/syscall.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/include/linux/nfsd/syscall.h b/include/linux/nfsd/syscall.h
index 82584f980b5a..872af1fe9d7d 100644
--- a/include/linux/nfsd/syscall.h
+++ b/include/linux/nfsd/syscall.h
@@ -34,8 +34,8 @@
#define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
#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 by ino (used by mountd) */
+/*#define NFSCTL_UGIDUPDATE 5 / * update a client's uid/gid map. DISCARDED */
+/*#define NFSCTL_GETFH 6 / * get an fh by ino DISCARDED */
#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 */
@@ -66,25 +66,6 @@ struct nfsctl_export {
__kernel_gid_t ex_anon_gid;
};
-/* UGIDUPDATE */
-struct nfsctl_uidmap {
- char * ug_ident;
- __kernel_uid_t ug_uidbase;
- int ug_uidlen;
- __kernel_uid_t * ug_udimap;
- __kernel_gid_t ug_gidbase;
- int ug_gidlen;
- __kernel_gid_t * ug_gdimap;
-};
-
-/* GETFH */
-struct nfsctl_fhparm {
- struct sockaddr gf_addr;
- __kernel_dev_t gf_dev;
- __kernel_ino_t gf_ino;
- int gf_version;
-};
-
/* GETFD */
struct nfsctl_fdparm {
struct sockaddr gd_addr;
@@ -108,16 +89,12 @@ struct nfsctl_arg {
struct nfsctl_svc u_svc;
struct nfsctl_client u_client;
struct nfsctl_export u_export;
- struct nfsctl_uidmap u_umap;
- struct nfsctl_fhparm u_getfh;
struct nfsctl_fdparm u_getfd;
struct nfsctl_fsparm u_getfs;
} u;
#define ca_svc u.u_svc
#define ca_client u.u_client
#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_getfs u.u_getfs
#define ca_authd u.u_authd