Home
last modified time | relevance | path

Searched refs:zoneroot (Results 1 – 15 of 15) sorted by relevance

/titanic_41/usr/src/lib/libtsol/common/
H A Dzone.c151 char zoneroot[MAXPATHLEN]; in getzonerootbyid() local
153 if (zone_getattr(zoneid, ZONE_ATTR_ROOT, zoneroot, in getzonerootbyid()
154 sizeof (zoneroot)) == -1) { in getzonerootbyid()
158 return (strdup(zoneroot)); in getzonerootbyid()
239 char zoneroot[MAXPATHLEN]; in getlabelbypath() local
245 if (zone_getattr(zids[i], ZONE_ATTR_ROOT, zoneroot, in getlabelbypath()
246 sizeof (zoneroot)) == -1) in getlabelbypath()
254 if ((zonerootlen = strlen(zoneroot)) <= 4) in getlabelbypath()
256 if (strncmp(path, zoneroot, zonerootlen - 4) == 0) { in getlabelbypath()
/titanic_41/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c337 char zoneroot[MAXPATHLEN]; in set_zone_emul_bitmap() local
351 if (zone_get_rootpath(zonename, zoneroot, sizeof (zoneroot)) != Z_OK) in set_zone_emul_bitmap()
354 zoneroot) >= sizeof (path)) in set_zone_emul_bitmap()
356 "%s" S10_REQ_EMULATION_DIR " is too long"), zoneroot); in set_zone_emul_bitmap()
427 if (snprintf(path, sizeof (path), "%s" DELETE_LIST_PATH, zoneroot) >= in set_zone_emul_bitmap()
430 " is too long"), zoneroot); in set_zone_emul_bitmap()
463 " reading from %s" DELETE_LIST_PATH "."), zoneroot); in set_zone_emul_bitmap()
471 zoneroot, strerror(errno)); in set_zone_emul_bitmap()
/titanic_41/usr/src/cmd/zoneadm/
H A Dzfs.c1513 char zoneroot[MAXPATHLEN]; in zone_mount_rootfs() local
1530 if (snprintf(zoneroot, sizeof (zoneroot), "%s/root", zonepath) >= in zone_mount_rootfs()
1531 sizeof (zoneroot)) { in zone_mount_rootfs()
1551 zoneroot) != 0) { in zone_mount_rootfs()
1559 zoneroot, libzfs_error_description(g_zfs)); in zone_mount_rootfs()
1580 if (mount(mtab->mnt_special, zoneroot, flags, mtab->mnt_fstype, NULL, 0, in zone_mount_rootfs()
1583 zerror(gettext("unable to mount zone root %s: %s"), zoneroot, in zone_mount_rootfs()
1604 char zoneroot[MAXPATHLEN]; in zone_unmount_rootfs() local
1621 if (snprintf(zoneroot, sizeof (zoneroot), "%s/root", zonepath) >= in zone_unmount_rootfs()
1622 sizeof (zoneroot)) { in zone_unmount_rootfs()
[all …]
/titanic_41/usr/src/lib/libproc/common/
H A DPzone.c244 if (P->zoneroot != NULL) { in Pzoneroot()
245 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
251 if ((P->zoneroot = strdup("")) == NULL) { in Pzoneroot()
256 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
261 if ((P->zoneroot = strdup("")) == NULL) { in Pzoneroot()
268 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
274 if ((P->zoneroot = strdup("")) == NULL) { in Pzoneroot()
281 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
287 if ((P->zoneroot = strdup(zpath)) == NULL) { in Pzoneroot()
292 (void) strlcpy(s, P->zoneroot, n); in Pzoneroot()
H A DPcontrol.h229 char *zoneroot; /* cached path to zone root */ member
H A DPcore.c2277 P->zoneroot = NULL; in Pfgrab_core()
/titanic_41/usr/src/cmd/tsol/updatehome/
H A Dsetupfiles.c97 char zoneroot[MAXPATHLEN]; in __setupfiles() local
140 if (zone_getattr(min_zoneid, ZONE_ATTR_ROOT, zoneroot, in __setupfiles()
141 sizeof (zoneroot)) == -1) { in __setupfiles()
147 zoneroot, pwd->pw_dir); in __setupfiles()
/titanic_41/usr/src/cmd/allocate/
H A Dallocate3.c896 char *mode, *cmd, *wdwcmd, *zoneroot; in exec_clean() local
906 if ((zoneroot = getzonerootbyname(zonename)) == NULL) { in exec_clean()
918 (void) strcpy(zonepath, zoneroot); in exec_clean()
919 free(zoneroot); in exec_clean()
1699 char *p, *tmpfile, *zoneroot; in create_znode() local
1707 if ((zoneroot = getzonerootbyname(zonename)) == NULL) { in create_znode()
1711 (void) strcpy(zonepath, zoneroot); in create_znode()
1712 free(zoneroot); in create_znode()
1787 char *zoneroot; in remove_znode() local
1795 if ((zoneroot = getzonerootbyname(zonename)) == NULL) { in remove_znode()
[all …]
/titanic_41/usr/src/tools/scripts/
H A Donu.sh137 zoneroot=`echo $zone | cut -d: -f 4`
140 update $zoneroot/root
/titanic_41/usr/src/cmd/fs.d/autofs/
H A Dauto_subr.c124 char zoneroot[MAXPATHLEN]; in loadzone_maps() local
141 zoneroot, sizeof (zoneroot)) == -1) in loadzone_maps()
145 zoneroot[0] = '\0'; in loadzone_maps()
166 appended_map, zoneroot); in loadzone_maps()
/titanic_41/usr/src/lib/libbe/common/
H A Dbe_mount.c709 char *zoneroot, be_fs_list_data_t *fld) in be_get_legacy_fs()
776 "%s%s", fld->altroot, zoneroot); in be_get_legacy_fs()
2546 char zoneroot[MAXPATHLEN]; in be_mount_one_zone() local
2573 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_mount_one_zone()
2575 (void) strlcat(zone_altroot, zoneroot, sizeof (zone_altroot)); in be_mount_one_zone()
2626 char zoneroot[MAXPATHLEN]; in be_unmount_one_zone() local
2631 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_unmount_one_zone()
2633 (void) strlcat(zone_altroot, zoneroot, sizeof (zone_altroot)); in be_unmount_one_zone()
H A Dbe_zones.c86 be_make_zoneroot(char *zonepath, char *zoneroot, int zoneroot_size) in be_make_zoneroot() argument
88 (void) snprintf(zoneroot, zoneroot_size, "%s/root", zonepath); in be_make_zoneroot()
H A Dbe_create.c1899 char zoneroot[MAXPATHLEN]; in be_copy_zones() local
2005 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_copy_zones()
2225 zoneroot_ds, zoneroot, &fld)) != BE_SUCCESS) { in be_copy_zones()
/titanic_41/usr/src/lib/brand/solaris10/zone/
H A Duninstall.ksh95 zoneroot=$zonepath/root
/titanic_41/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c5557 char zoneroot[MAXPATHLEN]; in kernel_state_to_user_state() local
5571 if (zone_getattr(zoneid, ZONE_ATTR_ROOT, zoneroot, in kernel_state_to_user_state()
5572 sizeof (zoneroot)) >= 0) { in kernel_state_to_user_state()
5573 zlen = strlen(zoneroot); in kernel_state_to_user_state()
5575 strcmp(zoneroot + zlen - 3, "/lu") == 0) in kernel_state_to_user_state()