Lines Matching refs:nxp
185 exp_export(struct nfsctl_export *nxp) in exp_export() argument
198 if (!exp_verify_string(nxp->ex_path, NFS_MAXPATHLEN) || in exp_export()
199 !exp_verify_string(nxp->ex_client, NFSCLNT_IDMAX)) in exp_export()
203 nxp->ex_client, nxp->ex_path, in exp_export()
204 nxp->ex_dev, (long) nxp->ex_ino, nxp->ex_flags); in exp_export()
212 if (!(clp = exp_getclientbyname(nxp->ex_client))) in exp_export()
218 if (path_init(nxp->ex_path, LOOKUP_POSITIVE, &nd)) in exp_export()
219 err = path_walk(nxp->ex_path, &nd); in exp_export()
231 if ((nxp->ex_flags & NFSEXP_FSID) && in exp_export()
232 (fsid_exp = exp_get_fsid(clp, nxp->ex_dev)) && in exp_export()
240 exp->ex_flags = nxp->ex_flags; in exp_export()
241 exp->ex_anon_uid = nxp->ex_anon_uid; in exp_export()
242 exp->ex_anon_gid = nxp->ex_anon_gid; in exp_export()
243 exp->ex_fsid = nxp->ex_dev; in exp_export()
266 || (nxp->ex_flags & NFSEXP_FSID)) in exp_export()
289 strcpy(exp->ex_path, nxp->ex_path); in exp_export()
294 exp->ex_flags = nxp->ex_flags; in exp_export()
297 exp->ex_anon_uid = nxp->ex_anon_uid; in exp_export()
298 exp->ex_anon_gid = nxp->ex_anon_gid; in exp_export()
299 exp->ex_fsid = nxp->ex_dev; in exp_export()
371 exp_unexport(struct nfsctl_export *nxp) in exp_unexport() argument
377 if (!exp_verify_string(nxp->ex_client, NFSCLNT_IDMAX)) in exp_unexport()
384 clp = exp_getclientbyname(nxp->ex_client); in exp_unexport()
386 svc_export *exp = exp_get(clp, nxp->ex_dev, nxp->ex_ino); in exp_unexport()