Lines Matching refs:exports
132 nfs_fini_tmpfile(const char *exports, struct tmpfile *tmpf) in nfs_fini_tmpfile() argument
141 if (rename(tmpf->name, exports) == -1) { in nfs_fini_tmpfile()
143 tmpf->name, exports, zfs_strerror(errno)); in nfs_fini_tmpfile()
182 nfs_process_exports(const char *exports, const char *mountpoint, in nfs_process_exports() argument
189 FILE *oldfp = fopen(exports, "re"); in nfs_process_exports()
220 exports, zfs_strerror(errno)); in nfs_process_exports()
242 nfs_copy_entries(FILE *newfp, const char *exports, const char *mountpoint) in nfs_copy_entries() argument
247 exports, mountpoint, nfs_copy_entries_cb, newfp); in nfs_copy_entries()
256 nfs_toggle_share(const char *lockfile, const char *exports, in nfs_toggle_share() argument
263 if (!nfs_init_tmpfile(exports, expdir, &tmpf)) in nfs_toggle_share()
272 error = nfs_copy_entries(tmpf.fp, exports, impl_share->sa_mountpoint); in nfs_toggle_share()
280 error = nfs_fini_tmpfile(exports, &tmpf); in nfs_toggle_share()
291 nfs_reset_shares(const char *lockfile, const char *exports) in nfs_reset_shares() argument
296 (void) ! truncate(exports, 0); in nfs_reset_shares()
312 nfs_is_shared_impl(const char *exports, sa_share_impl_t impl_share) in nfs_is_shared_impl() argument
315 nfs_process_exports(exports, impl_share->sa_mountpoint, in nfs_is_shared_impl()