Manual Pages for Linux CentOS command on man nfsservctl
MyWebUniversity

Manual Pages for Linux CentOS command on man nfsservctl

NFSSERVCTL(2) Linux Programmer's Manual NFSSERVCTL(2)

NAME

nfsservctl - syscall interface to kernel nfs daemon SYNOPSIS

#include long nfsservctl(int cmd, struct nfsctlarg *argp, union nfsctlres *resp); DESCRIPTION Note: Since Linux 3.1, this system call no longer exists. /* * These are the commands understood by nfsctl(). */

#define NFSCTLSVC 0 /* This is a server process. */

#define NFSCTLADDCLIENT 1 /* Add an NFS client. */

#define NFSCTLDELCLIENT 2 /* Remove an NFS client. */

#define NFSCTLEXPORT 3 /* export a file system. */

#define NFSCTLUNEXPORT 4 /* unexport a file system. */

#define NFSCTLUGIDUPDATE 5 /* update a client's UID/GID map. */

#define NFSCTLGETFH 6 /* get an fh (used by mountd) */ struct nfsctlarg { int caversion; /* safeguard */ union { struct nfsctlsvc usvc; struct nfsctlclient uclient; struct nfsctlexport uexport; struct nfsctluidmap uumap; struct nfsctlfhparm ugetfh; unsigned int udebug; } u; } union nfsctlres { struct knfsfh crgetfh; unsigned int crdebug; }; RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is set appropriately. CONFORMING TO

This call is Linux-specific. COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

Linux 2012-03-05 NFSSERVCTL(2)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™