Lines Matching refs:ze
354 struct zoneent ze; in zonecfg_destroy() local
393 bzero(&ze, sizeof (ze)); in zonecfg_destroy()
394 (void) strlcpy(ze.zone_name, zonename, sizeof (ze.zone_name)); in zonecfg_destroy()
395 if ((err = putzoneent(&ze, PZE_REMOVE)) != Z_OK) in zonecfg_destroy()
1115 struct zoneent ze; in zonecfg_refresh_index_file() local
1120 bzero(&ze, sizeof (ze)); in zonecfg_refresh_index_file()
1121 ze.zone_state = -1; /* Preserve existing state in index */ in zonecfg_refresh_index_file()
1125 (void) strlcpy(ze.zone_name, name, sizeof (ze.zone_name)); in zonecfg_refresh_index_file()
1130 (void) strlcpy(ze.zone_path, zonepath + strlen(zonecfg_root), in zonecfg_refresh_index_file()
1131 sizeof (ze.zone_path)); in zonecfg_refresh_index_file()
1135 (void) strlcpy(ze.zone_name, handle->zone_dh_delete_name, in zonecfg_refresh_index_file()
1136 sizeof (ze.zone_name)); in zonecfg_refresh_index_file()
1137 (void) strlcpy(ze.zone_newname, name, sizeof (ze.zone_newname)); in zonecfg_refresh_index_file()
1157 ze.zone_state = ZONE_STATE_CONFIGURED; in zonecfg_refresh_index_file()
1162 if ((err = putzoneent(&ze, opcode)) != Z_OK) in zonecfg_refresh_index_file()
5569 struct zoneent *ze; in zone_get_zonepath() local
5594 while ((ze = getzoneent_private(cookie)) != NULL) { in zone_get_zonepath()
5595 if (strcmp(ze->zone_name, zone_name) == 0) { in zone_get_zonepath()
5597 if (ze->zone_path[0] != '\0') in zone_get_zonepath()
5598 (void) strlcpy(cp, ze->zone_path, in zone_get_zonepath()
5601 free(ze); in zone_get_zonepath()
5762 struct zoneent *ze; in zone_get_state() local
5796 while ((ze = getzoneent_private(cookie)) != NULL) { in zone_get_state()
5797 if (strcmp(ze->zone_name, zone_name) == 0) { in zone_get_state()
5799 *state_num = ze->zone_state; in zone_get_state()
5801 free(ze); in zone_get_state()
5812 struct zoneent ze; in zone_set_state() local
5818 bzero(&ze, sizeof (ze)); in zone_set_state()
5819 (void) strlcpy(ze.zone_name, zone, sizeof (ze.zone_name)); in zone_set_state()
5820 ze.zone_state = state; in zone_set_state()
5821 (void) strlcpy(ze.zone_path, "", sizeof (ze.zone_path)); in zone_set_state()
5822 return (putzoneent(&ze, PZE_MODIFY)); in zone_set_state()
5915 struct zoneent *ze; in zonecfg_get_name_by_uuid() local
5928 while ((ze = getzoneent_private(fp)) != NULL) { in zonecfg_get_name_by_uuid()
5929 if (uuid_compare(uuid, ze->zone_uuid) == 0) in zonecfg_get_name_by_uuid()
5931 free(ze); in zonecfg_get_name_by_uuid()
5934 if (ze != NULL) { in zonecfg_get_name_by_uuid()
5935 (void) strlcpy(zonename, ze->zone_name, namelen); in zonecfg_get_name_by_uuid()
5936 free(ze); in zonecfg_get_name_by_uuid()
5952 struct zoneent *ze; in zonecfg_get_uuid() local
5956 while ((ze = getzoneent_private(fp)) != NULL) { in zonecfg_get_uuid()
5957 if (strcmp(ze->zone_name, zonename) == 0) in zonecfg_get_uuid()
5959 free(ze); in zonecfg_get_uuid()
5962 if (ze != NULL) { in zonecfg_get_uuid()
5963 uuid_copy(uuid, ze->zone_uuid); in zonecfg_get_uuid()
5964 free(ze); in zonecfg_get_uuid()