Lines Matching refs:zroot
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()
687 if (build_mnttable(zlogp, zroot, zrootlen, mnttab, &mnts, in unmount_filesystems()
4312 char zroot[MAXPATHLEN]; in duplicate_zone_root() local
4333 if (zone_getattr(zids[--nzids], ZONE_ATTR_ROOT, zroot, in duplicate_zone_root()
4334 sizeof (zroot)) == -1) in duplicate_zone_root()
4336 zlen = strlen(zroot); in duplicate_zone_root()
4339 if (strncmp(rootpath, zroot, zlen) == 0 && in duplicate_zone_root()
4340 (zroot[zlen] == '\0' || zroot[zlen] == '/') && in duplicate_zone_root()
5059 char zroot[MAXPATHLEN]; in lu_root_teardown() local
5061 if (zone_get_rootpath(zone_name, zroot, sizeof (zroot)) != Z_OK) { in lu_root_teardown()
5065 root_to_lu(zlogp, zroot, sizeof (zroot), B_FALSE); in lu_root_teardown()
5076 if (umount2(zroot, MS_FORCE) != 0) { in lu_root_teardown()
5077 if (errno == ENOTSUP && umount2(zroot, 0) == 0) in lu_root_teardown()
5084 if (umount2(zroot, 0) == 0) in lu_root_teardown()
5090 zerror(zlogp, B_TRUE, "unable to unmount '%s'", zroot); in lu_root_teardown()