/titanic_44/usr/src/cmd/tzreload/ |
H A D | tzreload.c | 50 static void doit(const char *zname, const char *zroot, int get); 54 static void send_cron_msg(const char *zname, const char *zroot); 190 doit(const char *zname, const char *zroot, int get) in doit() argument 195 if (strlcpy(file, zroot, sizeof (file)) >= sizeof (file) || in doit() 213 send_cron_msg(zname, zroot); in doit() 286 char zroot[PATH_MAX + 1]; in walk_zones() local 359 zroot[0] = '\0'; in walk_zones() 361 if ((*get_zroot)(zname, zroot, in walk_zones() 362 sizeof (zroot)) != Z_OK) { in walk_zones() 368 doit(zname, zroot, get); in walk_zones() [all …]
|
/titanic_44/usr/src/lib/libproc/common/ |
H A D | Pzone.c | 520 char zroot[PATH_MAX], zpath[PATH_MAX], tmp[PATH_MAX], link[PATH_MAX]; in Pzonepath() local 529 if (Pzoneroot(P, zroot, sizeof (zroot)) == NULL) in Pzonepath() 546 if (strcmp(tmp, zroot) == 0) { in Pzonepath() 547 (void) Plofspath(zroot, zroot, sizeof (zroot)); in Pzonepath() 548 dprintf("Pzonepath found zone path (1) '%s'\n", zroot); in Pzonepath() 549 (void) strlcpy(s, zroot, n); in Pzonepath() 552 i = strlen(zroot); in Pzonepath() 553 if ((strncmp(tmp, zroot, i) == 0) && (tmp[i] == '/')) in Pzonepath() 558 (void) Plofspath(zroot, zroot, sizeof (zroot)); in Pzonepath() 559 dprintf("Pzonepath found zone path (2) '%s'\n", zroot); in Pzonepath() [all …]
|
/titanic_44/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 230 build_mnttable(zlog_t *zlogp, const char *zroot, size_t zrootlen, FILE *mnttab, in build_mnttable() argument 245 if (strncmp(mnt.mnt_mountp, zroot, zrootlen) != 0) in build_mnttable() 587 root_to_lu(zlog_t *zlogp, char *zroot, size_t zrootlen, boolean_t isresolved) in root_to_lu() argument 590 resolve_lofs(zlogp, zroot, zrootlen); in root_to_lu() 591 (void) strcpy(strrchr(zroot, '/') + 1, "lu"); in root_to_lu() 630 char zroot[MAXPATHLEN + 1]; in unmount_filesystems() local 636 if (zone_get_rootpath(zone_name, zroot, sizeof (zroot)) != Z_OK) { in unmount_filesystems() 641 root_to_lu(zlogp, zroot, sizeof (zroot), B_FALSE); in unmount_filesystems() 643 (void) strcat(zroot, "/"); in unmount_filesystems() 644 zrootlen = strlen(zroot); in unmount_filesystems() [all …]
|
/titanic_44/usr/src/lib/libinstzones/hdrs/ |
H A D | instzones_api.h | 93 extern void z_set_zone_root(const char *zroot);
|
/titanic_44/usr/src/cmd/power/ |
H A D | handlers.c | 893 struct mnttab zroot = { 0 }; in check_mount() local 904 zroot.mnt_mountp = "/"; in check_mount() 905 zroot.mnt_fstype = "zfs"; in check_mount() 906 if (getmntany(fp, &entry, &zroot) == 0) { in check_mount()
|
/titanic_44/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 100 char zroot[MAXPATHLEN]; member 455 cp = zent->zroot; in zone_print() 470 zent->zstate_str, zent->zroot, zent->zbrand, ip_type_str); in zone_print() 483 (void) strlcpy(zent->zroot, "???", sizeof (zent->zroot)); in lookup_zone_info() 503 if (zone_getattr(zent->zid, ZONE_ATTR_ROOT, zent->zroot, in lookup_zone_info() 504 sizeof (zent->zroot)) == -1) { in lookup_zone_info() 509 cp = zent->zroot + strlen(zent->zroot) - 5; in lookup_zone_info() 510 if (cp > zent->zroot && strcmp(cp, "/root") == 0) in lookup_zone_info() 520 (void) strlcpy(zent->zroot, root, sizeof (zent->zroot)); in lookup_zone_info() 1341 (void) zone_getattr(zid, ZONE_ATTR_ROOT, zeptr->zroot, in fake_up_local_zone() [all …]
|
/titanic_44/usr/src/lib/libinstzones/common/ |
H A D | zones.c | 1178 z_set_zone_root(const char *zroot) in z_set_zone_root() argument 1189 assert(zroot != NULL); in z_set_zone_root() 1191 rootdir = _z_strdup((char *)zroot); in z_set_zone_root()
|
/titanic_44/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 1535 char zroot[MAXPATHLEN]; /* zone root path */ in zone_pathcheck() local 1574 if (zone_get_zonepath(name, zroot, sizeof (zroot)) != Z_OK) { in zone_pathcheck() 1580 if (resolvepath(zroot, rzroot, sizeof (rzroot) - 1) == -1) { in zone_pathcheck() 1585 (void) strlcpy(rzroot, zroot, sizeof (rzroot)); in zone_pathcheck()
|