Home | History | Annotate | Download | only in nfs

Lines Matching defs:nfs_pub

130 struct nfs_public nfs_pub;
740 if (nfs_pub.np_valid) {
741 nfs_pub.np_valid = 0;
742 if (nfs_pub.np_handle != NULL) {
743 free(nfs_pub.np_handle, M_TEMP);
744 nfs_pub.np_handle = NULL;
746 if (nfs_pub.np_index != NULL) {
747 free(nfs_pub.np_index, M_TEMP);
748 nfs_pub.np_index = NULL;
757 if (nfs_pub.np_valid != 0 && mp != nfs_pub.np_mount)
770 nfs_pub.np_handle = malloc(fhsize, M_TEMP, M_NOWAIT);
771 if (nfs_pub.np_handle == NULL)
774 error = vfs_composefh(rvp, nfs_pub.np_handle, &fhsize);
784 nfs_pub.np_index = malloc(NFS_MAXNAMLEN + 1, M_TEMP, M_WAITOK);
785 error = copyinstr(argp->ex_indexfile, nfs_pub.np_index,
791 for (cp = nfs_pub.np_index; *cp; cp++) {
799 free(nfs_pub.np_index, M_TEMP);
804 nfs_pub.np_mount = mp;
805 nfs_pub.np_valid = 1;
881 return nfs_pub.np_valid || !TAILQ_EMPTY(&netexport_list);