Lines Matching defs:new_zonepath
3865 char *new_zonepath = NULL;
3901 new_zonepath = argv[optind];
3913 if (validate_zonepath(new_zonepath, CMD_MOVE) != Z_OK)
3928 if (stat(new_zonepath, &new_zonepath_buf) == -1) {
3936 if ((dirp = opendir(new_zonepath)) == NULL) {
3952 "directory not empty\n"), new_zonepath);
4010 move_zfs(zonepath, new_zonepath) != Z_ERR) {
4017 * Remove the new_zonepath directory that got created above
4020 if (rmdir(new_zonepath) != 0) {
4027 if (rename(zonepath, new_zonepath) != 0) {
4044 create_zfs_zonepath(new_zonepath);
4051 err = copy_zone(zonepath, new_zonepath);
4062 if (zone_mount_rootfs(&mounts, new_zonepath) != 0) {
4068 if ((err = zonecfg_set_zonepath(handle, new_zonepath)) != Z_OK) {
4100 new_zonepath, B_TRUE) != 0) {
4106 new_zonepath);
4112 if (move_zfs(new_zonepath, zonepath) == Z_ERR) {
4115 "set as:\n%s\n"), new_zonepath);
4123 if (rename(new_zonepath, zonepath) != 0) {
4134 new_zonepath);
4136 err = cleanup_zonepath(new_zonepath, B_TRUE);