Home
last modified time | relevance | path

Searched refs:ze (Results 1 – 5 of 5) sorted by relevance

/titanic_50/usr/src/lib/libzonecfg/common/
H A Dgetzoneent.c93 struct zoneent *ze; in getzoneent() local
96 if ((ze = getzoneent_private(cookie)) == NULL) in getzoneent()
98 name = strdup(ze->zone_name); in getzoneent()
99 free(ze); in getzoneent()
107 struct zoneent *ze; in getzoneent_private() local
112 if ((ze = malloc(sizeof (struct zoneent))) == NULL) in getzoneent_private()
117 free(ze); in getzoneent_private()
137 (void) strlcpy(ze->zone_name, p, ZONENAME_MAX); in getzoneent_private()
146 ze->zone_state = ZONE_STATE_CONFIGURED; in getzoneent_private()
148 ze->zone_state = ZONE_STATE_INCOMPLETE; in getzoneent_private()
[all …]
H A Dlibzonecfg.c349 struct zoneent ze; in zonecfg_destroy() local
388 bzero(&ze, sizeof (ze)); in zonecfg_destroy()
389 (void) strlcpy(ze.zone_name, zonename, sizeof (ze.zone_name)); in zonecfg_destroy()
390 if ((err = putzoneent(&ze, PZE_REMOVE)) != Z_OK) in zonecfg_destroy()
1108 struct zoneent ze; in zonecfg_refresh_index_file() local
1113 bzero(&ze, sizeof (ze)); in zonecfg_refresh_index_file()
1114 ze.zone_state = -1; /* Preserve existing state in index */ in zonecfg_refresh_index_file()
1118 (void) strlcpy(ze.zone_name, name, sizeof (ze.zone_name)); in zonecfg_refresh_index_file()
1123 (void) strlcpy(ze.zone_path, zonepath + strlen(zonecfg_root), in zonecfg_refresh_index_file()
1124 sizeof (ze.zone_path)); in zonecfg_refresh_index_file()
[all …]
/titanic_50/usr/src/lib/libinstzones/common/
H A Dzones.c450 struct zoneent *ze; in z_get_nonglobal_zone_list_by_brand() local
472 while ((ze = getzoneent_private(zoneIndexFP)) != NULL) { in z_get_nonglobal_zone_list_by_brand()
477 if (strcmp(ze->zone_name, GLOBAL_ZONENAME) == 0) { in z_get_nonglobal_zone_list_by_brand()
478 free(ze); in z_get_nonglobal_zone_list_by_brand()
485 if (!z_is_zone_brand_in_list(ze->zone_name, brands)) { in z_get_nonglobal_zone_list_by_brand()
486 free(ze); in z_get_nonglobal_zone_list_by_brand()
496 if (strcmp(zent->zl_name, ze->zone_name) == 0) in z_get_nonglobal_zone_list_by_brand()
501 free(ze); in z_get_nonglobal_zone_list_by_brand()
522 zlst[numzones]._zlName = _z_strdup(ze->zone_name); in z_get_nonglobal_zone_list_by_brand()
523 zlst[numzones]._zlPath = _z_strdup(ze->zone_path); in z_get_nonglobal_zone_list_by_brand()
[all …]
/titanic_50/usr/src/uts/common/fs/zfs/
H A Dzvol.c257 zvol_extent_t *ze; in zvol_map_block() local
276 ze = list_tail(&ma->ma_zv->zv_extents); in zvol_map_block()
277 if (ze && in zvol_map_block()
278 DVA_GET_VDEV(BP_IDENTITY(bp)) == DVA_GET_VDEV(&ze->ze_dva) && in zvol_map_block()
280 DVA_GET_OFFSET(&ze->ze_dva) + ze->ze_nblks * bs) { in zvol_map_block()
281 ze->ze_nblks++; in zvol_map_block()
288 ze = kmem_zalloc(sizeof (zvol_extent_t), KM_SLEEP); in zvol_map_block()
289 ze->ze_dva = bp->blk_dva[0]; /* structure assignment */ in zvol_map_block()
290 ze->ze_nblks = 1; in zvol_map_block()
291 list_insert_tail(&ma->ma_zv->zv_extents, ze); in zvol_map_block()
[all …]
/titanic_50/usr/src/cmd/zoneadm/
H A Dzoneadm.c869 struct zoneent *ze; in crosscheck_zonepaths() local
874 while ((ze = getzoneent_private(cookie)) != NULL) { in crosscheck_zonepaths()
876 if (ze->zone_state < ZONE_STATE_INSTALLED) { in crosscheck_zonepaths()
877 free(ze); in crosscheck_zonepaths()
881 if (strcmp(ze->zone_name, GLOBAL_ZONENAME) == 0 || in crosscheck_zonepaths()
882 strcmp(ze->zone_name, target_zone) == 0) { in crosscheck_zonepaths()
883 free(ze); in crosscheck_zonepaths()
886 if (strlen(ze->zone_path) == 0) { in crosscheck_zonepaths()
888 if ((err = zone_get_zonepath(ze->zone_name, in crosscheck_zonepaths()
889 ze->zone_path, sizeof (ze->zone_path))) != Z_OK) { in crosscheck_zonepaths()
[all …]