Lines Matching defs:zroot
227 * Build the mount table for the zone rooted at "zroot", storing the resulting
232 build_mnttable(zlog_t *zlogp, const char *zroot, size_t zrootlen, FILE *mnttab,
247 if (strncmp(mnt.mnt_mountp, zroot, zrootlen) != 0)
589 root_to_lu(zlog_t *zlogp, char *zroot, size_t zrootlen, boolean_t isresolved)
592 resolve_lofs(zlogp, zroot, zrootlen);
593 (void) strcpy(strrchr(zroot, '/') + 1, "lu");
632 char zroot[MAXPATHLEN + 1];
638 if (zone_get_rootpath(zone_name, zroot, sizeof (zroot)) != Z_OK) {
643 root_to_lu(zlogp, zroot, sizeof (zroot), B_FALSE);
645 (void) strcat(zroot, "/");
646 zrootlen = strlen(zroot);
689 if (build_mnttable(zlogp, zroot, zrootlen, mnttab, &mnts,
4314 char zroot[MAXPATHLEN];
4335 if (zone_getattr(zids[--nzids], ZONE_ATTR_ROOT, zroot,
4336 sizeof (zroot)) == -1)
4338 zlen = strlen(zroot);
4341 if (strncmp(rootpath, zroot, zlen) == 0 &&
4342 (zroot[zlen] == '\0' || zroot[zlen] == '/') &&
5154 char zroot[MAXPATHLEN];
5156 if (zone_get_rootpath(zone_name, zroot, sizeof (zroot)) != Z_OK) {
5160 root_to_lu(zlogp, zroot, sizeof (zroot), B_FALSE);
5171 if (umount2(zroot, MS_FORCE) != 0) {
5172 if (errno == ENOTSUP && umount2(zroot, 0) == 0)
5179 if (umount2(zroot, 0) == 0)
5185 zerror(zlogp, B_TRUE, "unable to unmount '%s'", zroot);