/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pzone.c | 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() 560 (void) strlcpy(s, zroot, n); in Pzonepath() 651 (void) strlcpy(tmp, zroot, sizeof (tmp)); in Pzonepath() [all …]
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 646 char zroot[MAXPATHLEN + 1]; in unmount_filesystems() local 652 if (zone_get_rootpath(zone_name, zroot, sizeof (zroot)) != Z_OK) { in unmount_filesystems() 657 root_to_lu(zlogp, zroot, sizeof (zroot), B_FALSE); in unmount_filesystems() 659 (void) strcat(zroot, "/"); in unmount_filesystems() 660 zrootlen = strlen(zroot); in unmount_filesystems() 4424 char zroot[MAXPATHLEN]; in duplicate_zone_root() local 4448 zlen = strlen(zroot); in duplicate_zone_root() 4452 (zroot[zlen] == '\0' || zroot[zlen] == '/') && in duplicate_zone_root() 5297 char zroot[MAXPATHLEN]; in lu_root_teardown() local 5299 if (zone_get_rootpath(zone_name, zroot, sizeof (zroot)) != Z_OK) { in lu_root_teardown() [all …]
|
/illumos-gate/usr/src/lib/libinstzones/hdrs/ |
H A D | instzones_api.h | 93 extern void z_set_zone_root(const char *zroot);
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 101 char zroot[MAXPATHLEN]; member 456 cp = zent->zroot; in zone_print() 484 (void) strlcpy(zent->zroot, "???", sizeof (zent->zroot)); in lookup_zone_info() 504 if (zone_getattr(zent->zid, ZONE_ATTR_ROOT, zent->zroot, in lookup_zone_info() 505 sizeof (zent->zroot)) == -1) { in lookup_zone_info() 510 cp = zent->zroot + strlen(zent->zroot) - 5; in lookup_zone_info() 511 if (cp > zent->zroot && strcmp(cp, "/root") == 0) in lookup_zone_info() 521 (void) strlcpy(zent->zroot, root, sizeof (zent->zroot)); in lookup_zone_info() 1346 (void) zone_getattr(zid, ZONE_ATTR_ROOT, zeptr->zroot, in fake_up_local_zone() 1347 sizeof (zeptr->zroot)); in fake_up_local_zone() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 1537 char zroot[MAXPATHLEN]; /* zone root path */ in zone_pathcheck() local 1576 if (zone_get_zonepath(name, zroot, sizeof (zroot)) != Z_OK) { in zone_pathcheck() 1582 if (resolvepath(zroot, rzroot, sizeof (rzroot) - 1) == -1) { in zone_pathcheck() 1587 (void) strlcpy(rzroot, zroot, sizeof (rzroot)); in zone_pathcheck()
|