Lines Matching refs:rootpath
987 valid_mount_path(zlog_t *zlogp, const char *rootpath, const char *spec, in valid_mount_path() argument
1013 "%s%s/", rootpath, dir) >= sizeof (abspath)) { in valid_mount_path()
1015 rootpath, dir); in valid_mount_path()
1023 slashp = &abspath[strlen(rootpath)]; in valid_mount_path()
1190 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, in mount_one() argument
1198 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special, in mount_one()
1201 rootpath, fsptr->zone_fs_dir); in mount_one()
1205 if (make_one_dir(zlogp, rootpath, fsptr->zone_fs_dir, in mount_one()
1219 if ((rv = valid_mount_path(zlogp, rootpath, in mount_one()
1224 rootpath, fsptr->zone_fs_dir); in mount_one()
1229 (void) snprintf(path, sizeof (path), "%s%s", rootpath, in mount_one()
1354 build_mounted_pre_var(zlog_t *zlogp, char *rootpath, in build_mounted_pre_var() argument
1367 resolve_lofs(zlogp, rootpath, rootlen); in build_mounted_pre_var()
1399 strcmp(fromdir, rootpath) != 0) { in build_mounted_pre_var()
1425 if (domount(zlogp, MNTTYPE_LOFS, "", rootpath, tmp) != 0) in build_mounted_pre_var()
1427 (void) strlcpy(rootpath, tmp, rootlen); in build_mounted_pre_var()
1433 build_mounted_post_var(zlog_t *zlogp, zone_mnt_t mount_cmd, char *rootpath, in build_mounted_post_var() argument
1469 rootpath, *cpp); in build_mounted_post_var()
1672 char rootpath[MAXPATHLEN]; in mount_filesystems() local
1697 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in mount_filesystems()
1791 rootpath, sizeof (rootpath), zonepath, luroot, sizeof (luroot))) in mount_filesystems()
1799 size_t slen = strlen(rootpath) - 2; in mount_filesystems()
1806 assert(strcmp(&rootpath[slen], "/a") == 0); in mount_filesystems()
1807 rootpath[slen] = '\0'; in mount_filesystems()
1808 if (mount_one(zlogp, &fs_ptr[i], rootpath, mount_cmd) in mount_filesystems()
1811 rootpath[slen] = '/'; in mount_filesystems()
1814 if (mount_one(zlogp, &fs_ptr[i], rootpath, mount_cmd) != 0) in mount_filesystems()
1818 !build_mounted_post_var(zlogp, mount_cmd, rootpath, luroot)) in mount_filesystems()
1825 tsol_mounts(zlogp, zone_name, rootpath) != 0) in mount_filesystems()
2899 char rootpath[MAXPATHLEN]; in configure_exclusive_network_interfaces() local
2926 if (zone_get_devroot(zone_name, rootpath, in configure_exclusive_network_interfaces()
2927 sizeof (rootpath)) != Z_OK) { in configure_exclusive_network_interfaces()
2934 (void) snprintf(path, sizeof (path), "%s%s", rootpath, in configure_exclusive_network_interfaces()
3704 validate_rootds_label(zlog_t *zlogp, char *rootpath, m_label_t *zone_sl) in validate_rootds_label() argument
3729 if ((zhp = zfs_path_to_zhandle(hdl, rootpath, in validate_rootds_label()
3732 rootpath); in validate_rootds_label()
3762 "property for root dataset at '%s'\n", rootpath); in validate_rootds_label()
3772 "property on root dataset at '%s'\n", rootpath); in validate_rootds_label()
3795 tsol_mounts(zlog_t *zlogp, char *zone_name, char *rootpath) in tsol_mounts() argument
3817 (void) make_one_dir(zlogp, rootpath, "/export/home", in tsol_mounts()
3913 autofs_fstab.zone_fs_special, rootpath); in tsol_mounts()
3979 "%s/zone/%s/export/home", rootpath, zid_name); in tsol_mounts()
4031 MAXPATHLEN, "%s/export/home", rootpath); in tsol_mounts()
4305 duplicate_zone_root(zlog_t *zlogp, const char *rootpath) in duplicate_zone_root() argument
4326 rlen = strlen(rootpath); in duplicate_zone_root()
4338 if (strncmp(rootpath, zroot, zlen) == 0 && in duplicate_zone_root()
4340 (rootpath[zlen] == '\0' || rootpath[zlen] == '/')) { in duplicate_zone_root()
4347 rootpath, zonename); in duplicate_zone_root()
4361 duplicate_reachable_path(zlog_t *zlogp, const char *rootpath) in duplicate_reachable_path() argument
4366 if (stat64(rootpath, &rst) == -1) { in duplicate_reachable_path()
4367 zerror(zlogp, B_TRUE, "can't stat %s", rootpath); in duplicate_reachable_path()
4382 rootpath, mnp->mnt_mountp); in duplicate_reachable_path()
4663 char rootpath[MAXPATHLEN]; in vplat_create() local
4678 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in vplat_create()
4683 resolve_lofs(zlogp, rootpath, sizeof (rootpath)); in vplat_create()
4726 if (validate_rootds_label(zlogp, rootpath, zlabel) != 0) in vplat_create()
4738 if (duplicate_zone_root(zlogp, rootpath)) in vplat_create()
4740 if (duplicate_reachable_path(zlogp, rootpath)) in vplat_create()
4744 root_to_lu(zlogp, rootpath, sizeof (rootpath), B_TRUE); in vplat_create()
4755 if (mkdir(rootpath, 0755) != 0 && errno != EEXIST) { in vplat_create()
4756 zerror(zlogp, B_TRUE, "cannot create %s", rootpath); in vplat_create()
4759 if (domount(zlogp, "tmpfs", "", "swap", rootpath) != 0) in vplat_create()
4798 if ((zoneid = zone_create(kzone, rootpath, privs, rctlbuf, in vplat_create()
4802 if (zonecfg_find_mounts(rootpath, NULL, NULL) < 1) { in vplat_create()
4805 "a subdirectory of %s", rootpath); in vplat_create()
4810 "subdirectories of %s:", rootpath); in vplat_create()
4811 (void) zonecfg_find_mounts(rootpath, in vplat_create()