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