119 lines
4.5 KiB
HTML
119 lines
4.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of NFSSERVCTL</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>NFSSERVCTL</H1>
|
|
Section: Linux Programmer's Manual (2)<BR>Updated: 2019-03-06<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
nfsservctl - syscall interface to kernel nfs daemon
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<PRE>
|
|
<B>#include <<A HREF="file:///usr/include/linux/nfsd/syscall.h">linux/nfsd/syscall.h</A>></B>
|
|
|
|
<B>long nfsservctl(int </B><I>cmd</I><B>, struct nfsctl_arg *</B><I>argp</I><B>,</B>
|
|
<B> union nfsctl_res *</B><I>resp</I><B>);</B>
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<I>Note</I>:
|
|
|
|
Since Linux 3.1, this system call no longer exists.
|
|
It has been replaced by a set of files in the
|
|
<I>nfsd</I>
|
|
|
|
filesystem; see
|
|
<B><A HREF="/cgi-bin/man/man2html?7+nfsd">nfsd</A></B>(7).
|
|
|
|
<P>
|
|
|
|
|
|
|
|
/*
|
|
<BR> * These are the commands understood by nfsctl().
|
|
<BR> */
|
|
#define NFSCTL_SVC 0 /* This is a server process. */
|
|
#define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
|
|
#define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
|
|
#define NFSCTL_EXPORT 3 /* Export a filesystem. */
|
|
#define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */
|
|
#define NFSCTL_UGIDUPDATE 5 /* Update a client's UID/GID map
|
|
<BR> (only in Linux 2.4.x and earlier). */
|
|
#define NFSCTL_GETFH 6 /* Get a file handle (used by mountd)
|
|
<BR> (only in Linux 2.4.x and earlier). */
|
|
<P>
|
|
struct nfsctl_arg {
|
|
<BR> int ca_version; /* safeguard */
|
|
<BR> union {
|
|
<BR> struct nfsctl_svc u_svc;
|
|
<BR> struct nfsctl_client u_client;
|
|
<BR> struct nfsctl_export u_export;
|
|
<BR> struct nfsctl_uidmap u_umap;
|
|
<BR> struct nfsctl_fhparm u_getfh;
|
|
<BR> unsigned int u_debug;
|
|
<BR> } u;
|
|
}
|
|
<P>
|
|
union nfsctl_res {
|
|
<BR> struct knfs_fh cr_getfh;
|
|
<BR> unsigned int cr_debug;
|
|
};
|
|
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
On success, zero is returned.
|
|
On error, -1 is returned, and
|
|
<I>errno</I>
|
|
|
|
is set appropriately.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>VERSIONS</H2>
|
|
|
|
This system call was removed from the Linux kernel in version 3.1.
|
|
Library support was removed from glibc in version 2.28.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
This call is Linux-specific.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">VERSIONS</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">CONFORMING TO</A><DD>
|
|
<DT id="7"><A HREF="#lbAH">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:33 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|