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()
3705 validate_rootds_label(zlog_t *zlogp, char *rootpath, m_label_t *zone_sl) in validate_rootds_label() argument
3730 if ((zhp = zfs_path_to_zhandle(hdl, rootpath, in validate_rootds_label()
3733 rootpath); in validate_rootds_label()
3763 "property for root dataset at '%s'\n", rootpath); in validate_rootds_label()
3773 "property on root dataset at '%s'\n", rootpath); in validate_rootds_label()
3796 tsol_mounts(zlog_t *zlogp, char *zone_name, char *rootpath) in tsol_mounts() argument
3818 (void) make_one_dir(zlogp, rootpath, "/export/home", in tsol_mounts()
3914 autofs_fstab.zone_fs_special, rootpath); in tsol_mounts()
3980 "%s/zone/%s/export/home", rootpath, zid_name); in tsol_mounts()
4032 MAXPATHLEN, "%s/export/home", rootpath); in tsol_mounts()
4306 duplicate_zone_root(zlog_t *zlogp, const char *rootpath) in duplicate_zone_root() argument
4327 rlen = strlen(rootpath); in duplicate_zone_root()
4339 if (strncmp(rootpath, zroot, zlen) == 0 && in duplicate_zone_root()
4341 (rootpath[zlen] == '\0' || rootpath[zlen] == '/')) { in duplicate_zone_root()
4348 rootpath, zonename); in duplicate_zone_root()
4362 duplicate_reachable_path(zlog_t *zlogp, const char *rootpath) in duplicate_reachable_path() argument
4367 if (stat64(rootpath, &rst) == -1) { in duplicate_reachable_path()
4368 zerror(zlogp, B_TRUE, "can't stat %s", rootpath); in duplicate_reachable_path()
4383 rootpath, mnp->mnt_mountp); in duplicate_reachable_path()
4664 char rootpath[MAXPATHLEN]; in vplat_create() local
4679 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in vplat_create()
4684 resolve_lofs(zlogp, rootpath, sizeof (rootpath)); in vplat_create()
4727 if (validate_rootds_label(zlogp, rootpath, zlabel) != 0) in vplat_create()
4739 if (duplicate_zone_root(zlogp, rootpath)) in vplat_create()
4741 if (duplicate_reachable_path(zlogp, rootpath)) in vplat_create()
4745 root_to_lu(zlogp, rootpath, sizeof (rootpath), B_TRUE); in vplat_create()
4756 if (mkdir(rootpath, 0755) != 0 && errno != EEXIST) { in vplat_create()
4757 zerror(zlogp, B_TRUE, "cannot create %s", rootpath); in vplat_create()
4760 if (domount(zlogp, "tmpfs", "", "swap", rootpath) != 0) in vplat_create()
4799 if ((zoneid = zone_create(kzone, rootpath, privs, rctlbuf, in vplat_create()
4803 if (zonecfg_find_mounts(rootpath, NULL, NULL) < 1) { in vplat_create()
4806 "a subdirectory of %s", rootpath); in vplat_create()
4811 "subdirectories of %s:", rootpath); in vplat_create()
4812 (void) zonecfg_find_mounts(rootpath, in vplat_create()