]>
Commit | Line | Data |
---|---|---|
2d6c6dd1 | 1 | .\" %%%LICENSE_START(PUBLIC_DOMAIN) |
fea681da | 2 | .\" This text is in the public domain. |
2d6c6dd1 | 3 | .\" %%%LICENSE_END |
fea681da | 4 | .\" |
35deeb87 | 5 | .TH NFSSERVCTL 2 2016-12-12 "Linux" "Linux Programmer's Manual" |
fea681da MK |
6 | .SH NAME |
7 | nfsservctl \- syscall interface to kernel nfs daemon | |
8 | .SH SYNOPSIS | |
62218dc0 | 9 | .nf |
fea681da | 10 | .B #include <linux/nfsd/syscall.h> |
68e4db0a | 11 | .PP |
62218dc0 MK |
12 | .BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp , |
13 | .BI " union nfsctl_res *" resp ); | |
c8250206 | 14 | .fi |
fea681da | 15 | .SH DESCRIPTION |
dcee880f MK |
16 | .IR Note : |
17 | Since Linux 3.1, this system call no longer exists. | |
71c4b4b3 MK |
18 | It has been replaced by a set of files in the |
19 | .I nfsd | |
20 | filesystem; see | |
21 | .BR nfsd (7). | |
dcee880f | 22 | |
fea681da MK |
23 | .nf |
24 | /* | |
25 | * These are the commands understood by nfsctl(). | |
26 | */ | |
521bf584 MK |
27 | #define NFSCTL_SVC 0 /* This is a server process. */ |
28 | #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */ | |
29 | #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */ | |
9ee4a2b6 MK |
30 | #define NFSCTL_EXPORT 3 /* Export a filesystem. */ |
31 | #define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */ | |
11256884 | 32 | #define NFSCTL_UGIDUPDATE 5 /* Update a client's UID/GID map |
3ad8d7a2 | 33 | (only in Linux 2.4.x and earlier). */ |
11256884 | 34 | #define NFSCTL_GETFH 6 /* Get a file handle (used by mountd) |
3ad8d7a2 | 35 | (only in Linux 2.4.x and earlier). */ |
fea681da MK |
36 | |
37 | struct nfsctl_arg { | |
521bf584 MK |
38 | int ca_version; /* safeguard */ |
39 | union { | |
40 | struct nfsctl_svc u_svc; | |
41 | struct nfsctl_client u_client; | |
42 | struct nfsctl_export u_export; | |
43 | struct nfsctl_uidmap u_umap; | |
44 | struct nfsctl_fhparm u_getfh; | |
45 | unsigned int u_debug; | |
46 | } u; | |
fea681da MK |
47 | } |
48 | ||
49 | union nfsctl_res { | |
50 | struct knfs_fh cr_getfh; | |
51 | unsigned int cr_debug; | |
52 | }; | |
53 | .fi | |
47297adb | 54 | .SH RETURN VALUE |
c13182ef MK |
55 | On success, zero is returned. |
56 | On error, \-1 is returned, and | |
fea681da MK |
57 | .I errno |
58 | is set appropriately. | |
47297adb | 59 | .SH CONFORMING TO |
8382f16d | 60 | This call is Linux-specific. |