NAME
mount — keep track of remotely mounted file systems
SYNOPSIS
#include <rpcsvc/mount.h>
DESCRIPTION
Program number
The following are the
xdr
routines provided:
xdr_exportbody(xdrs, ex)
XDR *xdrs;
struct exports *ex;
xdr_exports(xdrs, ex);
XDR *xdrs;
struct exports **ex;
xdr_fhandle(xdrs, fh);
XDR *xdrs;
fhandle_t *fp;
xdr_fhstatus(xdrs, fhs);
XDR *xdrs;
struct fhstatus *fhs;
xdr_groups(xdrs, gr);
XDR *xdrs;
struct groups *gr;
xdr_mountbody(xdrs, ml)
XDR *xdrs;
struct mountlist *ml;
xdr_mountlist(xdrs, ml);
XDR *xdrs;
struct mountlist **ml;
xdr_path(xdrs, path);
XDR *xdrs;
char **path;
Procs
- MOUNTPROC_MNT
Argument of
xdr_path;
returns
fhstatus.
Requires UNIX authentication.
- MOUNTPROC_DUMP
No arguments;
returns
struct mountlist
- MOUNTPROC_UMNT
Argument of
xdr_path;
no results.
Requires UNIX authentication.
- MOUNTPROC_UMNTALL
No arguments;
no results.
Requires UNIX authentication.
Unmounts all remote mounts of sender.
- MOUNTPROC_EXPORT
No arguments;
returns
struct exports
- MOUNTPROC_EXPORTALL
No arguments;
returns
struct exports
Structures
struct mountlist { /* what is mounted */
char *ml_name;
char *ml_path;
struct mountlist *ml_nxt;
};
struct fhstatus {
int fhs_status;
fhandle_t fhs_fh;
};
/*
* List of exported directories
* An export entry with ex_groups
* NULL indicates an entry which is exported to the world.
*/
struct exports {
dev_t ex_dev; /* dev of directory */
char *ex_name; /* name of directory */
struct groups *ex_groups; /* groups allowed to */
/* mount this entry */
struct exports *ex_next;
};
struct groups {
char *g_name;
struct groups *g_next;
};
AUTHOR
mount(3N)
was developed by Sun Microsystems, Inc.