Lines Matching refs:mountpoint

109 	char		*mountpoint = NULL;  in be_mount()  local
133 if (nvlist_lookup_string(be_attrs, BE_ATTR_MOUNTPOINT, &mountpoint) in be_mount()
148 ret = _be_mount(be_name, &mountpoint, flags); in be_mount()
425 char mountpoint[MAXPATHLEN]; in _be_unmount() local
490 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in _be_unmount()
491 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in _be_unmount()
498 (void) strlcpy(mountpoint, mp, sizeof (mountpoint)); in _be_unmount()
503 if (strcmp(mountpoint, "/") == 0) { in _be_unmount()
510 ud.altroot = mountpoint; in _be_unmount()
575 char mountpoint[MAXPATHLEN]; in be_mount_zone_root() local
579 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_mount_zone_root()
580 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_mount_zone_root()
592 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) { in be_mount_zone_root()
648 char mountpoint[MAXPATHLEN]; in be_unmount_zone_root() local
659 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_unmount_zone_root()
660 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_unmount_zone_root()
668 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) { in be_unmount_zone_root()
712 char mountpoint[MAXPATHLEN]; in be_get_legacy_fs() local
805 mountpoint, sizeof (mountpoint), B_FALSE) == BE_SUCCESS) { in be_get_legacy_fs()
806 if (strcmp(mountpoint, "/") == 0) { in be_get_legacy_fs()
999 char mountpoint[MAXPATHLEN]; in be_mount_pool() local
1008 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_mount_pool()
1009 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_mount_pool()
1016 if ((*orig_mntpnt = strdup(mountpoint)) == NULL) { in be_mount_pool()
1056 mountpoint) != 0) { in be_mount_pool()
1152 char mountpoint[MAXPATHLEN]; in be_mount_callback() local
1195 mountpoint, sizeof (mountpoint), B_TRUE) == BE_SUCCESS) { in be_mount_callback()
1198 if (mount(fs_name, mountpoint, MS_DATA, in be_mount_callback()
1203 fs_name, mountpoint); in be_mount_callback()
1220 (void) strlcpy(mountpoint, zhp_mountpoint, sizeof (mountpoint)); in be_mount_callback()
1225 (void) snprintf(mountpoint, sizeof (mountpoint), in be_mount_callback()
1231 mountpoint)) { in be_mount_callback()
1234 "%s\n"), fs_name, mountpoint); in be_mount_callback()
1249 "mount dataset %s at %s: %s\n"), fs_name, mountpoint, in be_mount_callback()
1300 char mountpoint[MAXPATHLEN]; in be_unmount_callback() local
1324 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_unmount_callback()
1325 sizeof (mountpoint), &sourcetype, source, sizeof (source), in be_unmount_callback()
1343 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0) { in be_unmount_callback()
1360 if ((strncmp(mountpoint, ud->altroot, in be_unmount_callback()
1362 (mountpoint[strlen(ud->altroot)] == '/')) { in be_unmount_callback()
1364 zhp_mountpoint = mountpoint + in be_unmount_callback()
1433 char mountpoint[MAXPATHLEN]; in be_get_legacy_fs_callback() local
1454 mountpoint, sizeof (mountpoint), B_FALSE) != BE_SUCCESS) { in be_get_legacy_fs_callback()
1465 "failed to add %s to fs list\n"), mountpoint); in be_get_legacy_fs_callback()
1655 char mountpoint[MAXPATHLEN]; in loopback_mount_shared_fs() local
1686 (void) snprintf(mountpoint, sizeof (mountpoint), "%s%s", in loopback_mount_shared_fs()
1698 if (mount(zhp_mountpoint, mountpoint, mflag, MNTTYPE_LOFS, in loopback_mount_shared_fs()
1703 zhp_mountpoint, mountpoint, strerror(err)); in loopback_mount_shared_fs()
1972 get_mountpoint_from_vfstab(char *altroot, const char *fs, char *mountpoint, in get_mountpoint_from_vfstab() argument
1997 (void) snprintf(mountpoint, size_mp, "%s%s", altroot, in get_mountpoint_from_vfstab()
2000 (void) strlcpy(mountpoint, vp.vfs_mountp, size_mp); in get_mountpoint_from_vfstab()
2039 char mountpoint[MAXPATHLEN]; in fix_mountpoint_callback() local
2045 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in fix_mountpoint_callback()
2046 sizeof (mountpoint), &sourcetype, source, sizeof (source), in fix_mountpoint_callback()
2061 strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) { in fix_mountpoint_callback()
2067 if (strncmp(mountpoint, altroot, strlen(altroot)) == 0 && in fix_mountpoint_callback()
2068 mountpoint[strlen(altroot)] == '/') { in fix_mountpoint_callback()
2074 zhp_mountpoint = mountpoint + strlen(altroot); in fix_mountpoint_callback()
2121 char mountpoint[MAXPATHLEN]; in be_mount_root() local
2124 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in be_mount_root()
2125 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in be_mount_root()
2165 mountpoint); in be_mount_root()
2195 char mountpoint[MAXPATHLEN]; in be_unmount_root() local
2200 mountpoint, sizeof (mountpoint), B_FALSE) == BE_SUCCESS && in be_unmount_root()
2201 strcmp(mountpoint, "/") == 0) { in be_unmount_root()
2259 char mountpoint[MAXPATHLEN]; in fix_mountpoint() local
2266 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in fix_mountpoint()
2267 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in fix_mountpoint()
2277 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0 || in fix_mountpoint()
2278 strcmp(mountpoint, "/") == 0) { in fix_mountpoint()
2286 if (zfs_iter_filesystems(zhp, fix_mountpoint_callback, mountpoint) in fix_mountpoint()