Lines Matching refs:zonepath
1990 const char *, const char *, char *, size_t), char *zonename, char *zonepath) in get_hook() argument
1995 if (bp(bh, zonename, zonepath, cmd + EXEC_LEN, len - EXEC_LEN) != 0) in get_hook()
2009 char zonepath[MAXPATHLEN]; in verify_brand() local
2019 (void) strlcpy(zonepath, "-", sizeof (zonepath)); in verify_brand()
2020 } else if ((err = zonecfg_get_zonepath(handle, zonepath, in verify_brand()
2021 sizeof (zonepath))) != Z_OK) { in verify_brand()
2038 target_zone, zonepath); in verify_brand()
2789 char zonepath[MAXPATHLEN], checkpath[MAXPATHLEN]; in verify_details() local
2803 if ((err = zonecfg_get_zonepath(handle, zonepath, sizeof (zonepath))) != in verify_details()
2822 if (strcmp(zonepath, checkpath) != 0) { in verify_details()
2830 zonepath, checkpath); in verify_details()
2835 validate_zonepath(zonepath, cmd_num) != Z_OK) { in verify_details()
2837 "because of the above errors.\n"), zonepath); in verify_details()
2924 char zonepath[MAXPATHLEN]; in install_func() local
2941 if ((err = zone_get_zonepath(target_zone, zonepath, in install_func()
2942 sizeof (zonepath))) != Z_OK) { in install_func()
2955 target_zone, zonepath) != Z_OK) { in install_func()
2962 target_zone, zonepath) != Z_OK) { in install_func()
3056 create_zfs_zonepath(zonepath); in install_func()
3105 if ((temp_err = cleanup_zonepath(zonepath, B_FALSE)) != Z_OK) { in install_func()
3514 clone_copy(char *source_zonepath, char *zonepath) in clone_copy() argument
3531 create_zfs_zonepath(zonepath); in clone_copy()
3536 err = copy_zone(source_zonepath, zonepath); in clone_copy()
3549 char zonepath[MAXPATHLEN]; in clone_func() local
3682 if ((err = zone_get_zonepath(target_zone, zonepath, sizeof (zonepath))) in clone_func()
3699 zonepath) != Z_OK) { in clone_func()
3707 target_zone, zonepath) != Z_OK) { in clone_func()
3734 brand_get_validatesnap, target_zone, zonepath) != Z_OK) { in clone_func()
3797 err = clone_snapshot_zfs(snapshot, zonepath, in clone_func()
3807 err = clone_zfs(source_zonepath, zonepath, in clone_func()
3811 err = clone_copy(source_zonepath, zonepath); in clone_func()
3854 cleanup_zonepath(char *zonepath, boolean_t all) in cleanup_zonepath() argument
3875 if (*zonepath == NULL || strcmp(zonepath, "/") == 0) { in cleanup_zonepath()
3876 (void) fprintf(stderr, "invalid zonepath '%s'\n", zonepath); in cleanup_zonepath()
3884 if ((dirp = opendir(zonepath)) == NULL) in cleanup_zonepath()
3920 zonepath, std_entries[i]) >= sizeof (tmpbuf) || in cleanup_zonepath()
3935 zonepath); in cleanup_zonepath()
3949 if (is_zonepath_zfs(zonepath)) { in cleanup_zonepath()
3950 if (destroy_zfs(zonepath) == Z_OK) in cleanup_zonepath()
3953 " %s/*", zonepath); in cleanup_zonepath()
3960 zonepath); in cleanup_zonepath()
3973 char zonepath[MAXPATHLEN]; in move_func() local
4021 if ((err = zone_get_zonepath(target_zone, zonepath, sizeof (zonepath))) in move_func()
4028 if (stat(zonepath, &zonepath_buf) == -1) { in move_func()
4066 if (zone_mounts_init(&mounts, zonepath) != 0) in move_func()
4070 mounts.num_root_overlay_mounts, zonepath); in move_func()
4103 if (zone_unmount_rootfs(&mounts, zonepath, B_FALSE) != 0) in move_func()
4114 if (is_zonepath_zfs(zonepath) && in move_func()
4115 move_zfs(zonepath, new_zonepath) != Z_ERR) { in move_func()
4128 (void) zone_mount_rootfs(&mounts, zonepath); in move_func()
4132 if (rename(zonepath, new_zonepath) != 0) { in move_func()
4139 (void) zone_mount_rootfs(&mounts, zonepath); in move_func()
4153 zonepath); in move_func()
4156 err = copy_zone(zonepath, new_zonepath); in move_func()
4217 if (move_zfs(new_zonepath, zonepath) == Z_ERR) { in move_func()
4225 (void) zone_mount_rootfs(&mounts, zonepath); in move_func()
4228 if (rename(new_zonepath, zonepath) != 0) { in move_func()
4235 (void) zone_mount_rootfs(&mounts, zonepath); in move_func()
4257 (void) zone_mount_rootfs(&mounts, zonepath); in move_func()
4263 gettext("Cleaning up zonepath %s..."), zonepath); in move_func()
4265 err = cleanup_zonepath(zonepath, B_TRUE); in move_func()
4294 char zonepath[MAXPATHLEN]; in detach_func() local
4354 if ((err = zone_get_zonepath(target_zone, zonepath, sizeof (zonepath))) in detach_func()
4368 zonepath) != Z_OK) { in detach_func()
4375 target_zone, zonepath) != Z_OK) { in detach_func()
4447 if (execute && zonecfg_find_mounts(zonepath, NULL, NULL)) { in detach_func()
4449 "mounted on subdirectories of %s.\n"), zonepath); in detach_func()
4450 (void) zonecfg_find_mounts(zonepath, zfm_print, NULL); in detach_func()
4634 char zonepath[MAXPATHLEN]; in attach_func() local
4720 if ((err = zone_get_zonepath(target_zone, zonepath, in attach_func()
4721 sizeof (zonepath))) != Z_OK) { in attach_func()
4734 (void) strlcpy(zonepath, "-", sizeof (zonepath)); in attach_func()
4750 zonepath) != Z_OK) { in attach_func()
4757 target_zone, zonepath) != Z_OK) { in attach_func()
4820 if (validate_zonepath(zonepath, CMD_ATTACH) != Z_OK) { in attach_func()
4822 "because of the above errors.\n"), zonepath); in attach_func()
4899 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; in uninstall_func() local
4961 if ((err = zone_get_zonepath(target_zone, zonepath, in uninstall_func()
4962 sizeof (zonepath))) != Z_OK) { in uninstall_func()
4978 target_zone, zonepath) != Z_OK) { in uninstall_func()
4986 target_zone, zonepath) != Z_OK) { in uninstall_func()
5084 if ((err = cleanup_zonepath(zonepath, B_FALSE)) != Z_OK) { in uninstall_func()
5504 char zonepath[MAXPATHLEN]; in sysboot_func() local
5529 if ((err = zonecfg_get_zonepath(zone_handle, zonepath, in sysboot_func()
5530 sizeof (zonepath))) != Z_OK) { in sysboot_func()
5543 target_zone, zonepath); in sysboot_func()