Lines Matching refs:rootpath
980 valid_mount_path(zlog_t *zlogp, const char *rootpath, const char *spec, in valid_mount_path() argument
1006 "%s%s/", rootpath, dir) >= sizeof (abspath)) { in valid_mount_path()
1008 rootpath, dir); in valid_mount_path()
1016 slashp = &abspath[strlen(rootpath)]; in valid_mount_path()
1183 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, in mount_one() argument
1191 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special, in mount_one()
1194 rootpath, fsptr->zone_fs_dir); in mount_one()
1198 if (make_one_dir(zlogp, rootpath, fsptr->zone_fs_dir, in mount_one()
1212 if ((rv = valid_mount_path(zlogp, rootpath, in mount_one()
1217 rootpath, fsptr->zone_fs_dir); in mount_one()
1222 (void) snprintf(path, sizeof (path), "%s%s", rootpath, in mount_one()
1347 build_mounted_pre_var(zlog_t *zlogp, char *rootpath, in build_mounted_pre_var() argument
1360 resolve_lofs(zlogp, rootpath, rootlen); in build_mounted_pre_var()
1392 strcmp(fromdir, rootpath) != 0) { in build_mounted_pre_var()
1418 if (domount(zlogp, MNTTYPE_LOFS, "", rootpath, tmp) != 0) in build_mounted_pre_var()
1420 (void) strlcpy(rootpath, tmp, rootlen); in build_mounted_pre_var()
1426 build_mounted_post_var(zlog_t *zlogp, zone_mnt_t mount_cmd, char *rootpath, in build_mounted_post_var() argument
1462 rootpath, *cpp); in build_mounted_post_var()
1665 char rootpath[MAXPATHLEN]; in mount_filesystems() local
1690 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in mount_filesystems()
1784 rootpath, sizeof (rootpath), zonepath, luroot, sizeof (luroot))) in mount_filesystems()
1792 size_t slen = strlen(rootpath) - 2; in mount_filesystems()
1799 assert(strcmp(&rootpath[slen], "/a") == 0); in mount_filesystems()
1800 rootpath[slen] = '\0'; in mount_filesystems()
1801 if (mount_one(zlogp, &fs_ptr[i], rootpath, mount_cmd) in mount_filesystems()
1804 rootpath[slen] = '/'; in mount_filesystems()
1807 if (mount_one(zlogp, &fs_ptr[i], rootpath, mount_cmd) != 0) in mount_filesystems()
1811 !build_mounted_post_var(zlogp, mount_cmd, rootpath, luroot)) in mount_filesystems()
1818 tsol_mounts(zlogp, zone_name, rootpath) != 0) in mount_filesystems()
2892 char rootpath[MAXPATHLEN]; in configure_exclusive_network_interfaces() local
2919 if (zone_get_devroot(zone_name, rootpath, in configure_exclusive_network_interfaces()
2920 sizeof (rootpath)) != Z_OK) { in configure_exclusive_network_interfaces()
2927 (void) snprintf(path, sizeof (path), "%s%s", rootpath, in configure_exclusive_network_interfaces()
3698 validate_rootds_label(zlog_t *zlogp, char *rootpath, m_label_t *zone_sl) in validate_rootds_label() argument
3723 if ((zhp = zfs_path_to_zhandle(hdl, rootpath, in validate_rootds_label()
3726 rootpath); in validate_rootds_label()
3756 "property for root dataset at '%s'\n", rootpath); in validate_rootds_label()
3766 "property on root dataset at '%s'\n", rootpath); in validate_rootds_label()
3789 tsol_mounts(zlog_t *zlogp, char *zone_name, char *rootpath) in tsol_mounts() argument
3811 (void) make_one_dir(zlogp, rootpath, "/export/home", in tsol_mounts()
3907 autofs_fstab.zone_fs_special, rootpath); in tsol_mounts()
3973 "%s/zone/%s/export/home", rootpath, zid_name); in tsol_mounts()
4025 MAXPATHLEN, "%s/export/home", rootpath); in tsol_mounts()
4299 duplicate_zone_root(zlog_t *zlogp, const char *rootpath) in duplicate_zone_root() argument
4320 rlen = strlen(rootpath); in duplicate_zone_root()
4332 if (strncmp(rootpath, zroot, zlen) == 0 && in duplicate_zone_root()
4334 (rootpath[zlen] == '\0' || rootpath[zlen] == '/')) { in duplicate_zone_root()
4341 rootpath, zonename); in duplicate_zone_root()
4355 duplicate_reachable_path(zlog_t *zlogp, const char *rootpath) in duplicate_reachable_path() argument
4360 if (stat64(rootpath, &rst) == -1) { in duplicate_reachable_path()
4361 zerror(zlogp, B_TRUE, "can't stat %s", rootpath); in duplicate_reachable_path()
4376 rootpath, mnp->mnt_mountp); in duplicate_reachable_path()
4640 char rootpath[MAXPATHLEN]; in vplat_create() local
4655 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in vplat_create()
4660 resolve_lofs(zlogp, rootpath, sizeof (rootpath)); in vplat_create()
4703 if (validate_rootds_label(zlogp, rootpath, zlabel) != 0) in vplat_create()
4715 if (duplicate_zone_root(zlogp, rootpath)) in vplat_create()
4717 if (duplicate_reachable_path(zlogp, rootpath)) in vplat_create()
4721 root_to_lu(zlogp, rootpath, sizeof (rootpath), B_TRUE); in vplat_create()
4732 if (mkdir(rootpath, 0755) != 0 && errno != EEXIST) { in vplat_create()
4733 zerror(zlogp, B_TRUE, "cannot create %s", rootpath); in vplat_create()
4736 if (domount(zlogp, "tmpfs", "", "swap", rootpath) != 0) in vplat_create()
4775 if ((zoneid = zone_create(kzone, rootpath, privs, rctlbuf, in vplat_create()
4779 if (zonecfg_find_mounts(rootpath, NULL, NULL) < 1) { in vplat_create()
4782 "a subdirectory of %s", rootpath); in vplat_create()
4787 "subdirectories of %s:", rootpath); in vplat_create()
4788 (void) zonecfg_find_mounts(rootpath, in vplat_create()