/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | zone.c | 149 char zoneroot[MAXPATHLEN]; in getzonerootbyid() local 151 if (zone_getattr(zoneid, ZONE_ATTR_ROOT, zoneroot, in getzonerootbyid() 152 sizeof (zoneroot)) == -1) { in getzonerootbyid() 156 return (strdup(zoneroot)); in getzonerootbyid() 237 char zoneroot[MAXPATHLEN]; in getlabelbypath() local 243 if (zone_getattr(zids[i], ZONE_ATTR_ROOT, zoneroot, in getlabelbypath() 244 sizeof (zoneroot)) == -1) in getlabelbypath() 252 if ((zonerootlen = strlen(zoneroot)) <= 4) in getlabelbypath() 254 if (strncmp(path, zoneroot, zonerootlen - 4) == 0) { in getlabelbypath()
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/ |
H A D | s10_support.c | 337 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()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 1519 char zoneroot[MAXPATHLEN]; in zone_mount_rootfs() local 1536 if (snprintf(zoneroot, sizeof (zoneroot), "%s/root", zonepath) >= in zone_mount_rootfs() 1537 sizeof (zoneroot)) { in zone_mount_rootfs() 1557 zoneroot) != 0) { in zone_mount_rootfs() 1565 zoneroot, libzfs_error_description(g_zfs)); in zone_mount_rootfs() 1610 char zoneroot[MAXPATHLEN]; in zone_unmount_rootfs() local 1627 if (snprintf(zoneroot, sizeof (zoneroot), "%s/root", zonepath) >= in zone_unmount_rootfs() 1628 sizeof (zoneroot)) { in zone_unmount_rootfs() 1646 if (zfs_unmount(zhp, zoneroot, 0) != 0) { in zone_unmount_rootfs() 1665 if (umount(zoneroot) != 0) { in zone_unmount_rootfs() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pzone.c | 244 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 D | Pcontrol.h | 239 char *zoneroot; /* cached path to zone root */ member
|
H A D | Pcore.c | 2396 P->zoneroot = NULL;
|
H A D | Pcontrol.c | 1213 free(P->zoneroot); in Pfree()
|
/illumos-gate/usr/src/cmd/tsol/updatehome/ |
H A D | setupfiles.c | 97 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()
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 895 char *mode, *cmd, *wdwcmd, *zoneroot; in exec_clean() local 905 if ((zoneroot = getzonerootbyname(zonename)) == NULL) { in exec_clean() 917 (void) strcpy(zonepath, zoneroot); in exec_clean() 918 free(zoneroot); in exec_clean() 1698 char *p, *tmpfile, *zoneroot; in create_znode() local 1706 if ((zoneroot = getzonerootbyname(zonename)) == NULL) { in create_znode() 1710 (void) strcpy(zonepath, zoneroot); in create_znode() 1711 free(zoneroot); in create_znode() 1786 char *zoneroot; in remove_znode() local 1797 (void) strcpy(zonepath, zoneroot); in remove_znode() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | auto_subr.c | 124 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()
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 719 char *zoneroot, be_fs_list_data_t *fld) in be_get_legacy_fs() 786 "%s%s", fld->altroot, zoneroot); in be_get_legacy_fs() 2501 char zoneroot[MAXPATHLEN]; in be_mount_one_zone() local 2528 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_mount_one_zone() 2530 (void) strlcat(zone_altroot, zoneroot, sizeof (zone_altroot)); in be_mount_one_zone() 2581 char zoneroot[MAXPATHLEN]; in be_unmount_one_zone() local 2586 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_unmount_one_zone() 2588 (void) strlcat(zone_altroot, zoneroot, sizeof (zone_altroot)); in be_unmount_one_zone()
|
H A D | be_zones.c | 87 be_make_zoneroot(char *zonepath, char *zoneroot, int zoneroot_size) in be_make_zoneroot() argument 89 (void) snprintf(zoneroot, zoneroot_size, "%s/root", zonepath); in be_make_zoneroot()
|
H A D | be_create.c | 1978 char zoneroot[MAXPATHLEN]; in be_copy_zones() local 2084 be_make_zoneroot(zonepath, zoneroot, sizeof (zoneroot)); in be_copy_zones() 2302 zoneroot_ds, zoneroot, &fld)) != BE_SUCCESS) { in be_copy_zones()
|
/illumos-gate/usr/src/lib/brand/solaris10/zone/ |
H A D | uninstall.ksh | 95 zoneroot=$zonepath/root
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_db.c | 1475 zone_file_exists(char *zoneroot, char *filename) in zone_file_exists() argument 1480 (void) snprintf(fname, sizeof (fname), "%s/%s", zoneroot, filename); in zone_file_exists() 1495 dlmgmt_db_init(zoneid_t zoneid, char *zoneroot) in dlmgmt_db_init() argument 1505 if (zone_file_exists(zoneroot, cachefile)) { in dlmgmt_db_init() 1521 if (zone_file_exists(zoneroot, DLMGMT_PERSISTENT_DB_PATH)) { in dlmgmt_db_init()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 5720 char zoneroot[MAXPATHLEN]; in kernel_state_to_user_state() local 5734 if (zone_getattr(zoneid, ZONE_ATTR_ROOT, zoneroot, in kernel_state_to_user_state() 5735 sizeof (zoneroot)) >= 0) { in kernel_state_to_user_state() 5736 zlen = strlen(zoneroot); in kernel_state_to_user_state() 5738 strcmp(zoneroot + zlen - 3, "/lu") == 0) in kernel_state_to_user_state()
|