Lines Matching refs:zroot

246 build_mnttable(zlog_t *zlogp, const char *zroot, size_t zrootlen, FILE *mnttab,  in build_mnttable()  argument
261 if (strncmp(mnt.mnt_mountp, zroot, zrootlen) != 0) in build_mnttable()
603 root_to_lu(zlog_t *zlogp, char *zroot, size_t zrootlen, boolean_t isresolved) in root_to_lu() argument
606 resolve_lofs(zlogp, zroot, zrootlen); in root_to_lu()
607 (void) strcpy(strrchr(zroot, '/') + 1, "lu"); in root_to_lu()
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()
703 if (build_mnttable(zlogp, zroot, zrootlen, mnttab, &mnts, in unmount_filesystems()
4424 char zroot[MAXPATHLEN]; in duplicate_zone_root() local
4445 if (zone_getattr(zids[--nzids], ZONE_ATTR_ROOT, zroot, in duplicate_zone_root()
4446 sizeof (zroot)) == -1) in duplicate_zone_root()
4448 zlen = strlen(zroot); in duplicate_zone_root()
4451 if (strncmp(rootpath, zroot, zlen) == 0 && 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()
5303 root_to_lu(zlogp, zroot, sizeof (zroot), B_FALSE); in lu_root_teardown()
5314 if (umount2(zroot, MS_FORCE) != 0) { in lu_root_teardown()
5315 if (errno == ENOTSUP && umount2(zroot, 0) == 0) in lu_root_teardown()
5322 if (umount2(zroot, 0) == 0) in lu_root_teardown()
5328 zerror(zlogp, B_TRUE, "unable to unmount '%s'", zroot); in lu_root_teardown()