Lines Matching refs:mountpoint

30  * mountpoint.
120 * search the sharetab cache for the given mountpoint and protocol, returning
124 is_shared(const char *mountpoint, zfs_share_proto_t proto)
134 if (sa_share_find_init(mountpoint, sa_prot, &sa_hdl) != SA_OK)
188 * in 'where' with the current mountpoint, and return 1. Otherwise, we return
221 * mountpoint in 'buf'.
261 char mountpoint[ZFS_MAXPROPLEN];
289 static char *type_subopts[] = { "mountpoint", NULL };
302 * "mountpoint", "canmount", and "zoned" properties are consistent
306 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), &source,
333 (void) strlcpy(mountpoint, tmpmount, ZFS_MAXPROPLEN);
339 * temporary) mount inherits its mountpoint from its
361 zfs_get_name(zhp), mountpoint));
386 "mountpoint"));
391 zfs_get_name(zhp), mountpoint));
399 * mountpoint directories to contain
409 * mountpoint or which has no parent (i.e.,
432 zfs_get_name(zhp), mountpoint));
441 if (lstat(mountpoint, &buf) != 0) {
445 "mountpoint must already exist "
449 zfs_get_name(zhp), mountpoint));
451 if (mkdirp(mountpoint, 0755) != 0) {
453 "failed to create mountpoint, "
457 zfs_get_name(zhp), mountpoint));
462 * Determine if the mountpoint is empty. If so, refuse to perform the
469 !dir_is_empty(mountpoint)) {
474 zfs_get_name(zhp), mountpoint));
485 if (mount(zfs_get_name(zhp), mountpoint, MS_OPTIONSTR | flags,
494 "mountpoint or dataset is busy"));
523 zfs_get_name(zhp), mountpoint));
542 libzfs_mnttab_add(hdl, zfs_get_name(zhp), mountpoint,
551 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags)
553 if (umount2(mountpoint, flags) != 0) {
557 mountpoint));
567 zfs_unmount(zfs_handle_t *zhp, const char *mountpoint, int flags)
573 if (mountpoint != NULL) {
575 * mountpoint may have come from a call to getmnt/getmntany
578 mntpt = zfs_strdup(hdl, mountpoint);
611 * mount this filesystem and any children inheriting the mountpoint property.
612 * To do this, just act like we're changing the mountpoint property, but don't
634 * Unmount this filesystem and any children inheriting the mountpoint property.
635 * To do this, just act like we're changing the mountpoint property, but don't
700 char *mountpoint;
703 if (!zfs_is_mounted(zhp, &mountpoint))
706 if (rc = is_shared(mountpoint, proto)) {
708 *where = mountpoint;
710 free(mountpoint);
713 free(mountpoint);
740 char mountpoint[ZFS_MAXPROPLEN];
754 if (!zfs_is_shareable(zhp, mountpoint, sizeof (mountpoint),
761 (void) zfs_sharing_upgrade_impl(zhp, mountpoint);
785 * Now publish all shares on this mountpoint/dataset.
789 if ((rc = sa_fs_publish(shdl, mountpoint, share_prot, 1)) !=
822 * Unshare a filesystem by mountpoint.
825 unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint,
838 if ((rc = sa_fs_unpublish(libzfs_get_libshare(hdl), mountpoint,
855 zfs_unshare_proto(zfs_handle_t *zhp, const char *mountpoint,
865 if (mountpoint != NULL) {
867 * mountpoint may have come from a call to getmnt/getmntany
870 mntpt = zfs_strdup(hdl, mountpoint);
881 zfs_unshare_nfs(zfs_handle_t *zhp, const char *mountpoint)
883 return (zfs_unshare_proto(zhp, mountpoint, nfs_only));
887 zfs_unshare_smb(zfs_handle_t *zhp, const char *mountpoint)
889 return (zfs_unshare_proto(zhp, mountpoint, smb_only));
932 zfs_unshareall_bypath(zfs_handle_t *zhp, const char *mountpoint)
934 return (zfs_unshare_proto(zhp, mountpoint, share_all_proto));
938 * Remove the mountpoint associated with the current dataset, if necessary.
941 * - The mountpoint is not 'none' or 'legacy'
942 * - The mountpoint is non-empty
943 * - The mountpoint is the default or inherited
951 char mountpoint[ZFS_MAXPROPLEN];
954 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint),
966 (void) rmdir(mountpoint);
996 * This is needed for cases where a dataset's mountpoint
999 * eg. pool-0/local/default/1 mountpoint=/export/1
1063 * datasets and mountpoints within the pool, and sort them by mountpoint. Once
1095 * Sort the datasets by mountpoint.
1230 * mountpoint, so failure is not fatal.
1240 * mountpoint.
1290 zfs_get_mountpoint(zfs_handle_t *zhp, char *mountpoint, size_t len)
1298 if ((err = zfs_prop_get(zhp, prop, mountpoint, len, NULL, NULL, 0,