1NFSSERVCTL(2) Linux Programmer's Manual NFSSERVCTL(2)
2
3
4
6 nfsservctl - syscall interface to kernel nfs daemon
7
9 #include <linux/nfsd/syscall.h>
10
11 long nfsservctl(int cmd, struct nfsctl_arg *argp,
12 union nfsctl_res *resp);
13
15 Note: Since Linux 3.1, this system call no longer exists. It has been
16 replaced by a set of files in the nfsd filesystem; see nfsd(7).
17
18 /*
19 * These are the commands understood by nfsctl().
20 */
21 #define NFSCTL_SVC 0 /* This is a server process. */
22 #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
23 #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
24 #define NFSCTL_EXPORT 3 /* Export a filesystem. */
25 #define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */
26 #define NFSCTL_UGIDUPDATE 5 /* Update a client's UID/GID map
27 (only in Linux 2.4.x and earlier). */
28 #define NFSCTL_GETFH 6 /* Get a file handle (used by mountd)
29 (only in Linux 2.4.x and earlier). */
30
31 struct nfsctl_arg {
32 int ca_version; /* safeguard */
33 union {
34 struct nfsctl_svc u_svc;
35 struct nfsctl_client u_client;
36 struct nfsctl_export u_export;
37 struct nfsctl_uidmap u_umap;
38 struct nfsctl_fhparm u_getfh;
39 unsigned int u_debug;
40 } u;
41 }
42
43 union nfsctl_res {
44 struct knfs_fh cr_getfh;
45 unsigned int cr_debug;
46 };
47
49 On success, zero is returned. On error, -1 is returned, and errno is
50 set appropriately.
51
53 This call is Linux-specific.
54
56 This page is part of release 4.16 of the Linux man-pages project. A
57 description of the project, information about reporting bugs, and the
58 latest version of this page, can be found at
59 https://www.kernel.org/doc/man-pages/.
60
61
62
63Linux 2017-09-15 NFSSERVCTL(2)