Lines Matching refs:mountpoint
111 char *mountpoint = NULL; in be_mount() local
135 if (nvlist_lookup_string(be_attrs, BE_ATTR_MOUNTPOINT, &mountpoint) in be_mount()
150 ret = _be_mount(be_name, &mountpoint, flags); in be_mount()
431 char mountpoint[MAXPATHLEN]; in _be_unmount() local
500 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in _be_unmount()
501 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in _be_unmount()
508 (void) strlcpy(mountpoint, mp, sizeof (mountpoint)); in _be_unmount()
513 if (strcmp(mountpoint, "/") == 0) { in _be_unmount()
520 ud.altroot = mountpoint; in _be_unmount()
585 char mountpoint[MAXPATHLEN]; in be_mount_zone_root() local
589 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_mount_zone_root()
590 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_mount_zone_root()
602 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) { in be_mount_zone_root()
658 char mountpoint[MAXPATHLEN]; in be_unmount_zone_root() local
669 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_unmount_zone_root()
670 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_unmount_zone_root()
678 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) { in be_unmount_zone_root()
722 char mountpoint[MAXPATHLEN]; in be_get_legacy_fs() local
815 mountpoint, sizeof (mountpoint), B_FALSE) == BE_SUCCESS) { in be_get_legacy_fs()
816 if (strcmp(mountpoint, "/") == 0) { in be_get_legacy_fs()
1009 char mountpoint[MAXPATHLEN]; in be_mount_pool() local
1018 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_mount_pool()
1019 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_mount_pool()
1026 if ((*orig_mntpnt = strdup(mountpoint)) == NULL) { in be_mount_pool()
1066 mountpoint) != 0) { in be_mount_pool()
1162 char mountpoint[MAXPATHLEN]; in be_mount_callback() local
1204 mountpoint, sizeof (mountpoint), B_TRUE) == BE_SUCCESS) { in be_mount_callback()
1207 if (mount(fs_name, mountpoint, MS_DATA, in be_mount_callback()
1212 fs_name, mountpoint); in be_mount_callback()
1238 "mount dataset %s at %s: %s\n"), fs_name, mountpoint, in be_mount_callback()
1278 char mountpoint[MAXPATHLEN]; in be_unmount_callback() local
1302 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_unmount_callback()
1303 sizeof (mountpoint), &sourcetype, source, sizeof (source), in be_unmount_callback()
1321 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0) { in be_unmount_callback()
1338 if ((strncmp(mountpoint, ud->altroot, in be_unmount_callback()
1340 (mountpoint[strlen(ud->altroot)] == '/')) { in be_unmount_callback()
1342 zhp_mountpoint = mountpoint + in be_unmount_callback()
1407 char mountpoint[MAXPATHLEN]; in be_get_legacy_fs_callback() local
1428 mountpoint, sizeof (mountpoint), B_FALSE) != BE_SUCCESS) { in be_get_legacy_fs_callback()
1439 "failed to add %s to fs list\n"), mountpoint); in be_get_legacy_fs_callback()
1627 char mountpoint[MAXPATHLEN]; in loopback_mount_shared_fs() local
1658 (void) snprintf(mountpoint, sizeof (mountpoint), "%s%s", in loopback_mount_shared_fs()
1670 if (mount(zhp_mountpoint, mountpoint, mflag, MNTTYPE_LOFS, in loopback_mount_shared_fs()
1675 zhp_mountpoint, mountpoint, strerror(err)); in loopback_mount_shared_fs()
1944 get_mountpoint_from_vfstab(char *altroot, const char *fs, char *mountpoint, in get_mountpoint_from_vfstab() argument
1969 (void) snprintf(mountpoint, size_mp, "%s%s", altroot, in get_mountpoint_from_vfstab()
1972 (void) strlcpy(mountpoint, vp.vfs_mountp, size_mp); in get_mountpoint_from_vfstab()
2011 char mountpoint[MAXPATHLEN]; in fix_mountpoint_callback() local
2017 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in fix_mountpoint_callback()
2018 sizeof (mountpoint), &sourcetype, source, sizeof (source), in fix_mountpoint_callback()
2033 strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) { in fix_mountpoint_callback()
2039 if (strncmp(mountpoint, altroot, strlen(altroot)) == 0 && in fix_mountpoint_callback()
2040 mountpoint[strlen(altroot)] == '/') { in fix_mountpoint_callback()
2046 zhp_mountpoint = mountpoint + strlen(altroot); in fix_mountpoint_callback()
2093 char mountpoint[MAXPATHLEN]; in be_mount_root() local
2096 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_mount_root()
2097 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_mount_root()
2150 char mountpoint[MAXPATHLEN]; in be_unmount_root() local
2155 mountpoint, sizeof (mountpoint), B_FALSE) == BE_SUCCESS && in be_unmount_root()
2156 strcmp(mountpoint, "/") == 0) { in be_unmount_root()
2214 char mountpoint[MAXPATHLEN]; in fix_mountpoint() local
2221 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in fix_mountpoint()
2222 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in fix_mountpoint()
2232 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0 || in fix_mountpoint()
2233 strcmp(mountpoint, "/") == 0) { in fix_mountpoint()
2241 if (zfs_iter_filesystems(zhp, fix_mountpoint_callback, mountpoint) in fix_mountpoint()
2704 char mountpoint[MAXPATHLEN]; in mount_zfs() local
2714 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in mount_zfs()
2715 sizeof (mountpoint), &sourcetype, source, sizeof (source), in mount_zfs()
2724 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0 || in mount_zfs()
2725 strcmp(mountpoint, "/") == 0) { in mount_zfs()
2730 mountpoint[0] = '\0'; in mount_zfs()
2734 mountpoint); in mount_zfs()