4 * Add or delete an NFS export in knfsd.
6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
15 nfsexport(struct nfsctl_export *exp)
17 struct nfsctl_arg arg;
19 arg.ca_version = NFSCTL_VERSION;
20 memcpy(&arg.ca_export, exp, sizeof(arg.ca_export));
21 return nfsctl(NFSCTL_EXPORT, &arg, NULL);
25 nfsunexport(struct nfsctl_export *exp)
27 struct nfsctl_arg arg;
29 arg.ca_version = NFSCTL_VERSION;
30 memcpy(&arg.ca_export, exp, sizeof(arg.ca_export));
31 return nfsctl(NFSCTL_UNEXPORT, &arg, NULL);