|
|
9a499a |
autofs-5.1.7 - remove mount.x and rpcgen dependencies
|
|
|
9a499a |
|
|
|
9a499a |
From: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
|
|
|
9a499a |
Adding a local implementation to get the exports list from a server
|
|
|
9a499a |
means the the rpcgen generataed code is no longer needed so remove
|
|
|
9a499a |
mount.x and the build dependencies.
|
|
|
9a499a |
|
|
|
9a499a |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
---
|
|
|
9a499a |
CHANGELOG | 1
|
|
|
9a499a |
Makefile.conf.in | 1
|
|
|
9a499a |
autofs.spec | 2
|
|
|
9a499a |
configure | 58 ---------
|
|
|
9a499a |
configure.in | 1
|
|
|
9a499a |
include/automount.h | 1
|
|
|
9a499a |
include/config.h.in | 3
|
|
|
9a499a |
lib/Makefile | 26 ----
|
|
|
9a499a |
lib/mount.x | 345 ---------------------------------------------------
|
|
|
9a499a |
9 files changed, 5 insertions(+), 433 deletions(-)
|
|
|
9a499a |
delete mode 100644 lib/mount.x
|
|
|
9a499a |
|
|
|
9a499a |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
9a499a |
+++ autofs-5.1.4/CHANGELOG
|
|
|
9a499a |
@@ -1,5 +1,6 @@
|
|
|
9a499a |
|
|
|
9a499a |
- add xdr_exports().
|
|
|
9a499a |
+- remove mount.x and rpcgen dependencies.
|
|
|
9a499a |
|
|
|
9a499a |
xx/xx/2018 autofs-5.1.5
|
|
|
9a499a |
- fix flag file permission.
|
|
|
9a499a |
--- autofs-5.1.4.orig/Makefile.conf.in
|
|
|
9a499a |
+++ autofs-5.1.4/Makefile.conf.in
|
|
|
9a499a |
@@ -65,7 +65,6 @@ FEDFS = @ENABLE_FEDFS@
|
|
|
9a499a |
|
|
|
9a499a |
LEX = @PATH_LEX@
|
|
|
9a499a |
YACC = @PATH_YACC@
|
|
|
9a499a |
-RPCGEN = @PATH_RPCGEN@
|
|
|
9a499a |
RANLIB = @PATH_RANLIB@
|
|
|
9a499a |
|
|
|
9a499a |
# Use libtirpc if requested and available
|
|
|
9a499a |
--- autofs-5.1.4.orig/configure
|
|
|
9a499a |
+++ autofs-5.1.4/configure
|
|
|
9a499a |
@@ -651,8 +651,6 @@ XML_CONFIG
|
|
|
9a499a |
ENABLE_FEDFS
|
|
|
9a499a |
sssldir
|
|
|
9a499a |
HAVE_SSS_AUTOFS
|
|
|
9a499a |
-PATH_RPCGEN
|
|
|
9a499a |
-RPCGEN
|
|
|
9a499a |
PATH_RANLIB
|
|
|
9a499a |
RANLIB
|
|
|
9a499a |
PATH_YACC
|
|
|
9a499a |
@@ -4322,62 +4320,6 @@ else
|
|
|
9a499a |
as_fn_error $? "required program RANLIB not found" "$LINENO" 5
|
|
|
9a499a |
fi
|
|
|
9a499a |
|
|
|
9a499a |
-for ac_prog in rpcgen
|
|
|
9a499a |
-do
|
|
|
9a499a |
- # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
9a499a |
-set dummy $ac_prog; ac_word=$2
|
|
|
9a499a |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
9a499a |
-$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
9a499a |
-if ${ac_cv_path_RPCGEN+:} false; then :
|
|
|
9a499a |
- $as_echo_n "(cached) " >&6
|
|
|
9a499a |
-else
|
|
|
9a499a |
- case $RPCGEN in
|
|
|
9a499a |
- [\\/]* | ?:[\\/]*)
|
|
|
9a499a |
- ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
|
|
|
9a499a |
- ;;
|
|
|
9a499a |
- *)
|
|
|
9a499a |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
9a499a |
-for as_dir in $searchpath
|
|
|
9a499a |
-do
|
|
|
9a499a |
- IFS=$as_save_IFS
|
|
|
9a499a |
- test -z "$as_dir" && as_dir=.
|
|
|
9a499a |
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
9a499a |
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
9a499a |
- ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
|
|
|
9a499a |
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
9a499a |
- break 2
|
|
|
9a499a |
- fi
|
|
|
9a499a |
-done
|
|
|
9a499a |
- done
|
|
|
9a499a |
-IFS=$as_save_IFS
|
|
|
9a499a |
-
|
|
|
9a499a |
- ;;
|
|
|
9a499a |
-esac
|
|
|
9a499a |
-fi
|
|
|
9a499a |
-RPCGEN=$ac_cv_path_RPCGEN
|
|
|
9a499a |
-if test -n "$RPCGEN"; then
|
|
|
9a499a |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
|
|
|
9a499a |
-$as_echo "$RPCGEN" >&6; }
|
|
|
9a499a |
-else
|
|
|
9a499a |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
9a499a |
-$as_echo "no" >&6; }
|
|
|
9a499a |
-fi
|
|
|
9a499a |
-
|
|
|
9a499a |
-
|
|
|
9a499a |
- test -n "$RPCGEN" && break
|
|
|
9a499a |
-done
|
|
|
9a499a |
-
|
|
|
9a499a |
-if test -n "$RPCGEN"; then
|
|
|
9a499a |
-
|
|
|
9a499a |
-cat >>confdefs.h <<_ACEOF
|
|
|
9a499a |
-#define PATH_RPCGEN "$RPCGEN"
|
|
|
9a499a |
-_ACEOF
|
|
|
9a499a |
-
|
|
|
9a499a |
- PATH_RPCGEN="$RPCGEN"
|
|
|
9a499a |
-else
|
|
|
9a499a |
- as_fn_error $? "required program RPCGEN not found" "$LINENO" 5
|
|
|
9a499a |
-fi
|
|
|
9a499a |
-
|
|
|
9a499a |
|
|
|
9a499a |
if test -z "$sssldir"; then
|
|
|
9a499a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sssd autofs library" >&5
|
|
|
9a499a |
--- autofs-5.1.4.orig/configure.in
|
|
|
9a499a |
+++ autofs-5.1.4/configure.in
|
|
|
9a499a |
@@ -165,7 +165,6 @@ AF_PATH_INCLUDE(E4FSCK, fsck.ext4 e4fsck
|
|
|
9a499a |
AF_CHECK_PROG(LEX, flex lex, , $searchpath)
|
|
|
9a499a |
AF_CHECK_PROG(YACC, bison, , $searchpath)
|
|
|
9a499a |
AF_CHECK_PROG(RANLIB, ranlib, , $searchpath)
|
|
|
9a499a |
-AF_CHECK_PROG(RPCGEN, rpcgen, , $searchpath)
|
|
|
9a499a |
|
|
|
9a499a |
AF_CHECK_SSS_LIB(SSS_AUTOFS, libsss_autofs.so)
|
|
|
9a499a |
AC_SUBST(HAVE_SSS_AUTOFS)
|
|
|
9a499a |
--- autofs-5.1.4.orig/include/automount.h
|
|
|
9a499a |
+++ autofs-5.1.4/include/automount.h
|
|
|
9a499a |
@@ -32,7 +32,6 @@
|
|
|
9a499a |
#include "macros.h"
|
|
|
9a499a |
#include "log.h"
|
|
|
9a499a |
#include "rpc_subs.h"
|
|
|
9a499a |
-#include "mounts.h"
|
|
|
9a499a |
#include "parse_subs.h"
|
|
|
9a499a |
#include "mounts.h"
|
|
|
9a499a |
#include "dev-ioctl-lib.h"
|
|
|
9a499a |
--- autofs-5.1.4.orig/include/config.h.in
|
|
|
9a499a |
+++ autofs-5.1.4/include/config.h.in
|
|
|
9a499a |
@@ -135,9 +135,6 @@
|
|
|
9a499a |
/* define if you have RANLIB */
|
|
|
9a499a |
#undef PATH_RANLIB
|
|
|
9a499a |
|
|
|
9a499a |
-/* define if you have RPCGEN */
|
|
|
9a499a |
-#undef PATH_RPCGEN
|
|
|
9a499a |
-
|
|
|
9a499a |
/* define if you have UMOUNT */
|
|
|
9a499a |
#undef PATH_UMOUNT
|
|
|
9a499a |
|
|
|
9a499a |
--- autofs-5.1.4.orig/lib/Makefile
|
|
|
9a499a |
+++ autofs-5.1.4/lib/Makefile
|
|
|
9a499a |
@@ -8,10 +8,9 @@ include ../Makefile.rules
|
|
|
9a499a |
SRCS = cache.c cat_path.c rpc_subs.c mounts.c log.c nsswitch.c \
|
|
|
9a499a |
nss_tok.c nss_parse.tab.c args.c alarm.c macros.c defaults.c \
|
|
|
9a499a |
parse_subs.c dev-ioctl-lib.c
|
|
|
9a499a |
-RPCS = mount.h mount_clnt.c mount_xdr.c
|
|
|
9a499a |
-OBJS = cache.o mount_clnt.o mount_xdr.o cat_path.o rpc_subs.o \
|
|
|
9a499a |
- mounts.o log.o nsswitch.o nss_tok.o nss_parse.tab.o args.o \
|
|
|
9a499a |
- alarm.o macros.o defaults.o parse_subs.o dev-ioctl-lib.o
|
|
|
9a499a |
+OBJS = cache.o cat_path.o rpc_subs.o mounts.o log.o nsswitch.o \
|
|
|
9a499a |
+ nss_tok.o nss_parse.tab.o args.o alarm.o macros.o defaults.o \
|
|
|
9a499a |
+ parse_subs.o dev-ioctl-lib.o
|
|
|
9a499a |
|
|
|
9a499a |
YACCSRC = nss_tok.c nss_parse.tab.c nss_parse.tab.h
|
|
|
9a499a |
|
|
|
9a499a |
@@ -34,23 +33,6 @@ autofs.a: $(OBJS)
|
|
|
9a499a |
$(AR) $(ARFLAGS) $(LIB) $(OBJS)
|
|
|
9a499a |
-$(RANLIB) $(LIB)
|
|
|
9a499a |
|
|
|
9a499a |
-mount.h: mount.x
|
|
|
9a499a |
- $(RPCGEN) -h -o mount.h mount.x
|
|
|
9a499a |
-
|
|
|
9a499a |
-mount_clnt.c: mount.h
|
|
|
9a499a |
- $(RPCGEN) -l -o mount_clnt.c mount.x
|
|
|
9a499a |
-
|
|
|
9a499a |
-mount_clnt.o: mount_clnt.c
|
|
|
9a499a |
- $(CC) $(CFLAGS) -o mount_clnt.o -c mount_clnt.c
|
|
|
9a499a |
- $(STRIP) mount_clnt.o
|
|
|
9a499a |
-
|
|
|
9a499a |
-mount_xdr.c: mount.h
|
|
|
9a499a |
- $(RPCGEN) -c -o mount_xdr.c mount.x
|
|
|
9a499a |
-
|
|
|
9a499a |
-mount_xdr.o: mount_xdr.c
|
|
|
9a499a |
- $(CC) $(CFLAGS) -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c
|
|
|
9a499a |
- $(STRIP) mount_xdr.o
|
|
|
9a499a |
-
|
|
|
9a499a |
nss_tok.c: nss_tok.l
|
|
|
9a499a |
$(LEX) -o$@ -Pnss_ $?
|
|
|
9a499a |
|
|
|
9a499a |
@@ -61,8 +43,6 @@ nss_tok.o: nss_tok.c nss_parse.tab.h
|
|
|
9a499a |
|
|
|
9a499a |
nss_parse.tab.o: nss_parse.tab.c nss_parse.tab.h
|
|
|
9a499a |
|
|
|
9a499a |
-rpc_subs.o: mount.h
|
|
|
9a499a |
-
|
|
|
9a499a |
install: all
|
|
|
9a499a |
|
|
|
9a499a |
clean:
|
|
|
9a499a |
--- autofs-5.1.4.orig/lib/mount.x
|
|
|
9a499a |
+++ /dev/null
|
|
|
9a499a |
@@ -1,345 +0,0 @@
|
|
|
9a499a |
-%/*
|
|
|
9a499a |
-% * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
|
|
9a499a |
-% * unrestricted use provided that this legend is included on all tape
|
|
|
9a499a |
-% * media and as a part of the software program in whole or part. Users
|
|
|
9a499a |
-% * may copy or modify Sun RPC without charge, but are not authorized
|
|
|
9a499a |
-% * to license or distribute it to anyone else except as part of a product or
|
|
|
9a499a |
-% * program developed by the user or with the express written consent of
|
|
|
9a499a |
-% * Sun Microsystems, Inc.
|
|
|
9a499a |
-% *
|
|
|
9a499a |
-% * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
|
|
|
9a499a |
-% * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
|
|
|
9a499a |
-% * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
|
|
|
9a499a |
-% *
|
|
|
9a499a |
-% * Sun RPC is provided with no support and without any obligation on the
|
|
|
9a499a |
-% * part of Sun Microsystems, Inc. to assist in its use, correction,
|
|
|
9a499a |
-% * modification or enhancement.
|
|
|
9a499a |
-% *
|
|
|
9a499a |
-% * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
|
|
|
9a499a |
-% * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
|
|
|
9a499a |
-% * OR ANY PART THEREOF.
|
|
|
9a499a |
-% *
|
|
|
9a499a |
-% * In no event will Sun Microsystems, Inc. be liable for any lost revenue
|
|
|
9a499a |
-% * or profits or other special, indirect and consequential damages, even if
|
|
|
9a499a |
-% * Sun has been advised of the possibility of such damages.
|
|
|
9a499a |
-% *
|
|
|
9a499a |
-% * Sun Microsystems, Inc.
|
|
|
9a499a |
-% * 2550 Garcia Avenue
|
|
|
9a499a |
-% * Mountain View, California 94043
|
|
|
9a499a |
-% */
|
|
|
9a499a |
-
|
|
|
9a499a |
-%/*
|
|
|
9a499a |
-% * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
|
|
|
9a499a |
-% */
|
|
|
9a499a |
-%
|
|
|
9a499a |
-%/* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * Protocol description for the mount program
|
|
|
9a499a |
- */
|
|
|
9a499a |
-
|
|
|
9a499a |
-#ifdef RPC_HDR
|
|
|
9a499a |
-%#ifndef _rpcsvc_mount_h
|
|
|
9a499a |
-%#define _rpcsvc_mount_h
|
|
|
9a499a |
-%#include <memory.h>
|
|
|
9a499a |
-#endif
|
|
|
9a499a |
-
|
|
|
9a499a |
-const MNTPATHLEN = 1024; /* maximum bytes in a pathname argument */
|
|
|
9a499a |
-const MNTNAMLEN = 255; /* maximum bytes in a name argument */
|
|
|
9a499a |
-const FHSIZE = 32; /* size in bytes of a file handle */
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * The fhandle is the file handle that the server passes to the client.
|
|
|
9a499a |
- * All file operations are done using the file handles to refer to a file
|
|
|
9a499a |
- * or a directory. The file handle can contain whatever information the
|
|
|
9a499a |
- * server needs to distinguish an individual file.
|
|
|
9a499a |
- */
|
|
|
9a499a |
-typedef opaque fhandle[FHSIZE];
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * If a status of zero is returned, the call completed successfully, and
|
|
|
9a499a |
- * a file handle for the directory follows. A non-zero status indicates
|
|
|
9a499a |
- * some sort of error. The status corresponds with UNIX error numbers.
|
|
|
9a499a |
- */
|
|
|
9a499a |
-union fhstatus switch (unsigned fhs_status) {
|
|
|
9a499a |
-case 0:
|
|
|
9a499a |
- fhandle fhs_fhandle;
|
|
|
9a499a |
-default:
|
|
|
9a499a |
- void;
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * The type dirpath is the pathname of a directory
|
|
|
9a499a |
- */
|
|
|
9a499a |
-typedef string dirpath<MNTPATHLEN>;
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * The type name is used for arbitrary names (hostnames, groupnames)
|
|
|
9a499a |
- */
|
|
|
9a499a |
-typedef string name<MNTNAMLEN>;
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * A list of who has what mounted
|
|
|
9a499a |
- */
|
|
|
9a499a |
-typedef struct mountbody *mountlist;
|
|
|
9a499a |
-struct mountbody {
|
|
|
9a499a |
- name ml_hostname;
|
|
|
9a499a |
- dirpath ml_directory;
|
|
|
9a499a |
- mountlist ml_next;
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * A list of netgroups
|
|
|
9a499a |
- */
|
|
|
9a499a |
-typedef struct groupnode *groups;
|
|
|
9a499a |
-struct groupnode {
|
|
|
9a499a |
- name gr_name;
|
|
|
9a499a |
- groups gr_next;
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * A list of what is exported and to whom
|
|
|
9a499a |
- */
|
|
|
9a499a |
-typedef struct exportnode *exports;
|
|
|
9a499a |
-struct exportnode {
|
|
|
9a499a |
- dirpath ex_dir;
|
|
|
9a499a |
- groups ex_groups;
|
|
|
9a499a |
- exports ex_next;
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * POSIX pathconf information
|
|
|
9a499a |
- */
|
|
|
9a499a |
-struct ppathcnf {
|
|
|
9a499a |
- int pc_link_max; /* max links allowed */
|
|
|
9a499a |
- short pc_max_canon; /* max line len for a tty */
|
|
|
9a499a |
- short pc_max_input; /* input a tty can eat all at once */
|
|
|
9a499a |
- short pc_name_max; /* max file name length (dir entry) */
|
|
|
9a499a |
- short pc_path_max; /* max path name length (/x/y/x/.. ) */
|
|
|
9a499a |
- short pc_pipe_buf; /* size of a pipe (bytes) */
|
|
|
9a499a |
- u_char pc_vdisable; /* safe char to turn off c_cc[i] */
|
|
|
9a499a |
- char pc_xxx; /* alignment padding; cc_t == char */
|
|
|
9a499a |
- short pc_mask[2]; /* validity and boolean bits */
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * NFSv3 file handle
|
|
|
9a499a |
- */
|
|
|
9a499a |
-const FHSIZE3 = 64; /* max size of NFSv3 file handle in bytes */
|
|
|
9a499a |
-typedef opaque fhandle3<FHSIZE3>;
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * NFSv3 mount status
|
|
|
9a499a |
- */
|
|
|
9a499a |
-enum mountstat3 {
|
|
|
9a499a |
- MNT_OK = 0, /* no error */
|
|
|
9a499a |
- MNT3ERR_PERM = 1, /* not owner */
|
|
|
9a499a |
- MNT3ERR_NOENT = 2, /* no such file or directory */
|
|
|
9a499a |
- MNT3ERR_IO = 5, /* I/O error */
|
|
|
9a499a |
- MNT3ERR_ACCES = 13, /* Permission denied */
|
|
|
9a499a |
- MNT3ERR_NOTDIR = 20, /* Not a directory */
|
|
|
9a499a |
- MNT3ERR_INVAL = 22, /* Invalid argument */
|
|
|
9a499a |
- MNT3ERR_NAMETOOLONG = 63, /* File name too long */
|
|
|
9a499a |
- MNT3ERR_NOTSUPP = 10004,/* Operation not supported */
|
|
|
9a499a |
- MNT3ERR_SERVERFAULT = 10006 /* A failure on the server */
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-/*
|
|
|
9a499a |
- * NFSv3 mount result
|
|
|
9a499a |
- */
|
|
|
9a499a |
-struct mountres3_ok {
|
|
|
9a499a |
- fhandle3 fhandle;
|
|
|
9a499a |
- int auth_flavors<>;
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-union mountres3 switch (mountstat3 fhs_status) {
|
|
|
9a499a |
-case MNT_OK:
|
|
|
9a499a |
- mountres3_ok mountinfo; /* File handle and supported flavors */
|
|
|
9a499a |
-default:
|
|
|
9a499a |
- void;
|
|
|
9a499a |
-};
|
|
|
9a499a |
-
|
|
|
9a499a |
-program MOUNTPROG {
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Version one of the mount protocol communicates with version two
|
|
|
9a499a |
- * of the NFS protocol. The only connecting point is the fhandle
|
|
|
9a499a |
- * structure, which is the same for both protocols.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- version MOUNTVERS {
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Does no work. It is made available in all RPC services
|
|
|
9a499a |
- * to allow server reponse testing and timing
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC_NULL(void) = 0;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * If fhs_status is 0, then fhs_fhandle contains the
|
|
|
9a499a |
- * file handle for the directory. This file handle may
|
|
|
9a499a |
- * be used in the NFS protocol. This procedure also adds
|
|
|
9a499a |
- * a new entry to the mount list for this client mounting
|
|
|
9a499a |
- * the directory.
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- fhstatus
|
|
|
9a499a |
- MOUNTPROC_MNT(dirpath) = 1;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Returns the list of remotely mounted filesystems. The
|
|
|
9a499a |
- * mountlist contains one entry for each hostname and
|
|
|
9a499a |
- * directory pair.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- mountlist
|
|
|
9a499a |
- MOUNTPROC_DUMP(void) = 2;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Removes the mount list entry for the directory
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC_UMNT(dirpath) = 3;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Removes all of the mount list entries for this client
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC_UMNTALL(void) = 4;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Returns a list of all the exported filesystems, and which
|
|
|
9a499a |
- * machines are allowed to import it.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- exports
|
|
|
9a499a |
- MOUNTPROC_EXPORT(void) = 5;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Identical to MOUNTPROC_EXPORT above
|
|
|
9a499a |
- */
|
|
|
9a499a |
- exports
|
|
|
9a499a |
- MOUNTPROC_EXPORTALL(void) = 6;
|
|
|
9a499a |
- } = 1;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Version two of the mount protocol communicates with version two
|
|
|
9a499a |
- * of the NFS protocol.
|
|
|
9a499a |
- * The only difference from version one is the addition of a POSIX
|
|
|
9a499a |
- * pathconf call.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- version MOUNTVERS_POSIX {
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Does no work. It is made available in all RPC services
|
|
|
9a499a |
- * to allow server reponse testing and timing
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC_NULL(void) = 0;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * If fhs_status is 0, then fhs_fhandle contains the
|
|
|
9a499a |
- * file handle for the directory. This file handle may
|
|
|
9a499a |
- * be used in the NFS protocol. This procedure also adds
|
|
|
9a499a |
- * a new entry to the mount list for this client mounting
|
|
|
9a499a |
- * the directory.
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- fhstatus
|
|
|
9a499a |
- MOUNTPROC_MNT(dirpath) = 1;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Returns the list of remotely mounted filesystems. The
|
|
|
9a499a |
- * mountlist contains one entry for each hostname and
|
|
|
9a499a |
- * directory pair.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- mountlist
|
|
|
9a499a |
- MOUNTPROC_DUMP(void) = 2;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Removes the mount list entry for the directory
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC_UMNT(dirpath) = 3;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Removes all of the mount list entries for this client
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC_UMNTALL(void) = 4;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Returns a list of all the exported filesystems, and which
|
|
|
9a499a |
- * machines are allowed to import it.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- exports
|
|
|
9a499a |
- MOUNTPROC_EXPORT(void) = 5;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Identical to MOUNTPROC_EXPORT above
|
|
|
9a499a |
- */
|
|
|
9a499a |
- exports
|
|
|
9a499a |
- MOUNTPROC_EXPORTALL(void) = 6;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * POSIX pathconf info (Sun hack)
|
|
|
9a499a |
- */
|
|
|
9a499a |
- ppathcnf
|
|
|
9a499a |
- MOUNTPROC_PATHCONF(dirpath) = 7;
|
|
|
9a499a |
- } = 2;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Version 3 of the protocol is for NFSv3
|
|
|
9a499a |
- */
|
|
|
9a499a |
- version MOUNTVERS_NFSV3 {
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Does no work. It is made available in all RPC services
|
|
|
9a499a |
- * to allow server reponse testing and timing
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC3_NULL(void) = 0;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * If fhs_status is 0, then fhs_fhandle contains the
|
|
|
9a499a |
- * file handle for the directory. This file handle may
|
|
|
9a499a |
- * be used in the NFS protocol. This procedure also adds
|
|
|
9a499a |
- * a new entry to the mount list for this client mounting
|
|
|
9a499a |
- * the directory.
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- mountres3
|
|
|
9a499a |
- MOUNTPROC3_MNT(dirpath) = 1;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Returns the list of remotely mounted filesystems. The
|
|
|
9a499a |
- * mountlist contains one entry for each hostname and
|
|
|
9a499a |
- * directory pair.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- mountlist
|
|
|
9a499a |
- MOUNTPROC3_DUMP(void) = 2;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Removes the mount list entry for the directory
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC3_UMNT(dirpath) = 3;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Removes all of the mount list entries for this client
|
|
|
9a499a |
- * Unix authentication required.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- void
|
|
|
9a499a |
- MOUNTPROC3_UMNTALL(void) = 4;
|
|
|
9a499a |
-
|
|
|
9a499a |
- /*
|
|
|
9a499a |
- * Returns a list of all the exported filesystems, and which
|
|
|
9a499a |
- * machines are allowed to import it.
|
|
|
9a499a |
- */
|
|
|
9a499a |
- exports
|
|
|
9a499a |
- MOUNTPROC3_EXPORT(void) = 5;
|
|
|
9a499a |
- } = 3;
|
|
|
9a499a |
-} = 100005;
|
|
|
9a499a |
-
|
|
|
9a499a |
-#ifdef RPC_HDR
|
|
|
9a499a |
-%#endif /*!_rpcsvc_mount_h*/
|
|
|
9a499a |
-#endif
|