/titanic_51/usr/src/boot/sys/boot/common/ |
H A D | dev_net.c | 177 setenv("boot.tftproot.path", rootpath, 1); in net_open() 180 setenv("boot.nfsroot.path", rootpath, 1); in net_open() 303 if (bp_getfile(sock, "root", &rootip, rootpath)) { in net_getparams() 314 printf("net_open: server path: %s\n", rootpath); in net_getparams() 352 * Parses the rootpath if present 354 * The rootpath format can be in the form 368 * The pathname will be stored in the global variable rootpath. 381 if (strncmp(rootpath, uri_schemes[i].scheme, in net_parse_rootpath() 388 ptr = rootpath; in net_parse_rootpath() 394 addr = inet_addr(rootpath); in net_parse_rootpath() [all...] |
/titanic_51/usr/src/cmd/tsol/zones/ |
H A D | zoneshare.sh | 55 rootpath=$prefix/root 71 # Prepend each exported pathname with the zone's rootpath 79 `egrep -v "(^[#])" | nawk -v rootpath=$rootpath \ 81 print rootpath $NF ";" } ' | /sbin/sh`
|
H A D | zoneunshare.sh | 55 rootpath=$prefix/root 77 `egrep "^$rootpath"|nawk '{ print "/usr/sbin/unshare " $1 ";" }'|/sbin/sh`
|
/titanic_51/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 988 valid_mount_path(zlog_t *zlogp, const char *rootpath, const char *spec, in valid_mount_path() argument 1007 * Join rootpath and dir. Make sure abspath ends with '/', this in valid_mount_path() 1014 "%s%s/", rootpath, dir) >= sizeof (abspath)) { in valid_mount_path() 1016 rootpath, dir); in valid_mount_path() 1021 * Starting with rootpath, verify the mount path one component in valid_mount_path() 1024 slashp = &abspath[strlen(rootpath)]; in valid_mount_path() 1191 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, in mount_one() argument 1199 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special, in mount_one() 1202 rootpath, fsptr->zone_fs_dir); in mount_one() 1206 if (make_one_dir(zlogp, rootpath, fspt in mount_one() 1355 build_mounted_pre_var(zlog_t * zlogp,char * rootpath,size_t rootlen,const char * zonepath,char * luroot,size_t lurootlen) build_mounted_pre_var() argument 1434 build_mounted_post_var(zlog_t * zlogp,zone_mnt_t mount_cmd,char * rootpath,const char * luroot) build_mounted_post_var() argument 1673 char rootpath[MAXPATHLEN]; mount_filesystems() local 2900 char rootpath[MAXPATHLEN]; configure_exclusive_network_interfaces() local 3705 validate_rootds_label(zlog_t * zlogp,char * rootpath,m_label_t * zone_sl) validate_rootds_label() argument 3796 tsol_mounts(zlog_t * zlogp,char * zone_name,char * rootpath) tsol_mounts() argument 4307 duplicate_zone_root(zlog_t * zlogp,const char * rootpath) duplicate_zone_root() argument 4363 duplicate_reachable_path(zlog_t * zlogp,const char * rootpath) duplicate_reachable_path() argument 4665 char rootpath[MAXPATHLEN]; vplat_create() local [all...] |
H A D | zoneadmd.c | 617 char rootpath[MAXPATHLEN]; in mount_early_fs() local 624 /* determine the zone rootpath */ in mount_early_fs() 637 (void) strlcpy(rootpath, luroot, sizeof (rootpath)); in mount_early_fs() 640 rootpath, sizeof (rootpath)) != Z_OK) { in mount_early_fs() 646 if ((rv = valid_mount_path(zlogp, rootpath, spec, dir, fstype)) < 0) { in mount_early_fs() 648 rootpath, dir); in mount_early_fs() 652 if (make_one_dir(zlogp, rootpath, dir, in mount_early_fs() 666 if ((rv = valid_mount_path(zlogp, rootpath, spe in mount_early_fs() [all...] |
/titanic_51/usr/src/cmd/fs.d/nfs/lib/ |
H A D | ref_subr.c | 152 for (j = 0; j < fs->rootpath.pathname4_len; j++) { in print_referral_summary() 153 s = utf8_to_str(&fs->rootpath.pathname4_val[j], in print_referral_summary() 159 if (fs->rootpath.pathname4_len == 0) in print_referral_summary() 284 objp->rootpath.pathname4_val = NULL; in xdr_fs_location4() 290 if (!xdr_pathname4(xdrs, &objp->rootpath)) in xdr_fs_location4()
|
/titanic_51/usr/src/cmd/fs.d/ |
H A D | fslib.c | 423 char rootpath[MAXPATHLEN]; member 469 summaries[j].rootpath, sizeof (summaries[j].rootpath)); in fs_get_zone_summaries() 477 * Adding a trailing '/' to the zone's rootpath allows us to in fs_get_zone_summaries() 481 * As an example, if the zone's rootpath is "/foo/root", in fs_get_zone_summaries() 483 * "/foo/rootpath" doesn't. in fs_get_zone_summaries() 485 (void) strlcat(summaries[j].rootpath, "/", in fs_get_zone_summaries() 486 sizeof (summaries[j].rootpath)); in fs_get_zone_summaries() 502 if (strncmp(mntpt, summaries[i].rootpath, in fs_find_zone()
|
/titanic_51/usr/src/boot/sys/boot/uboot/lib/ |
H A D | net.c | 111 * Silently get out right away if we don't have rootpath, because none in get_env_net_params() 114 * If we do have rootpath, copy it into the global var and also set in get_env_net_params() 119 if ((envstr = ub_env_get("rootpath")) == NULL) in get_env_net_params() 121 strlcpy(rootpath, envstr, sizeof(rootpath)); in get_env_net_params() 122 setenv("dhcp.root-path", rootpath, 0); in get_env_net_params() 153 * Get optional serverip before rootpath; the latter can override it. in get_env_net_params() 163 * There must be a rootpath. It may be ip:/path or it may be just the in get_env_net_params() 170 printf("No server address for rootpath '%s'\n", envstr); in get_env_net_params()
|
/titanic_51/usr/src/boot/lib/libstand/ |
H A D | globals.c | 21 char rootpath[FNAME_SIZE] = "/"; /* root mount path */ variable
|
H A D | tftp.c | 447 pathsize = (strlen(rootpath) + 1 + strlen(path) + 1) * sizeof(char); in tftp_open() 453 if (rootpath[strlen(rootpath) - 1] == '/' || path[0] == '/') in tftp_open() 458 rootpath, extraslash, path); in tftp_open()
|
H A D | net.h | 75 extern char rootpath[FNAME_SIZE];
|
H A D | nfs.c | 486 printf("nfs_open: %s (rootpath=%s)\n", upath, rootpath); in nfs_open() 488 if (!rootpath[0]) { in nfs_open() 489 printf("no rootpath, no nfs\n"); in nfs_open() 502 if ((error = nfs_getrootfh(desc, rootpath, &nfs_root_node.fhsize, in nfs_open() 517 setenv("boot.nfsroot.path", rootpath, 1); in nfs_open()
|
H A D | bootp.c | 390 strlcpy(rootpath, val, sizeof(rootpath)); in vend_rfc1048()
|
/titanic_51/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 750 char rootpath[MAXPATHLEN]; in g_devid_get() local 765 rootpath[0] = '\0'; in g_devid_get() 772 strcat(rootpath, devpath + strlen(DEV_PREFIX) - 1); in g_devid_get() 774 cptr = strrchr(rootpath, ':'); in g_devid_get() 794 if (strcmp(rootpath, devfs_path) == 0) { in g_devid_get()
|
/titanic_51/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 83 zonecfg_open_scratch(const char *rootpath, boolean_t createfile) in zonecfg_open_scratch() argument 92 rootpath); in zonecfg_open_scratch()
|
H A D | libzonecfg.c | 245 zonecfg_set_root(const char *rootpath) in zonecfg_set_root() argument 249 if (rootpath == NULL || rootpath[0] == '\0' || rootpath[1] == '\0' || in zonecfg_set_root() 250 (zonecfg_root = strdup(rootpath)) == NULL) in zonecfg_set_root() 2923 * This function finds everything mounted under a zone's rootpath. 2924 * This returns the number of mounts under rootpath, or -1 on error. 2932 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *, in zonecfg_find_mounts() argument 2941 assert(rootpath != NULL); in zonecfg_find_mounts() 2943 if ((zfsl = snprintf(zfs_path, sizeof (zfs_path), "%s/.zfs/", rootpath)) in zonecfg_find_mounts() 5467 zone_get_rootpath(char * zone_name,char * rootpath,size_t rp_sz) zone_get_rootpath() argument [all...] |
/titanic_51/usr/src/stand/lib/fs/nfs/ |
H A D | mount.c | 393 struct nfs_file rootpath; in nfs4init() local 444 error = lookup(path, &rootpath, TRUE); in nfs4init() 450 roothandle = rootpath; /* structure copy */ in nfs4init()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rexecd.c | 153 static char rootpath[] = "PATH=/usr/sbin:/usr/bin"; variable 431 envinit[ENVINIT_PATH] = rootpath; in doit()
|
H A D | in.rshd.c | 410 static char rootpath[] = "PATH=/usr/sbin:/usr/bin"; variable 1115 path = (pwd->pw_uid == 0) ? rootpath : userpath; in doit()
|
/titanic_51/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 175 char *rootpath; in prtconf_devinfo() local 181 rootpath = "/"; in prtconf_devinfo() 197 if (strcmp(rootpath, "/") != 0) { in prtconf_devinfo() 212 root_node = di_init_impl(rootpath, flag, &fetch); in prtconf_devinfo() 218 root_node = di_init(rootpath, flag); in prtconf_devinfo()
|
/titanic_51/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 943 char rootpath[MAXPATHLEN]; /* root path */ in validate_zonepath() local 1131 if (snprintf(rootpath, sizeof (rootpath), "%s/root", rpath) >= in validate_zonepath() 1132 sizeof (rootpath)) { in validate_zonepath() 1141 if ((res = stat(rootpath, &stbuf)) == 0) { in validate_zonepath() 1155 "directory.\n"), rootpath); in validate_zonepath() 1161 "owned by root.\n"), rootpath); in validate_zonepath() 1167 "0755.\n"), rootpath); in validate_zonepath() 4901 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; in uninstall_func() local 5005 if ((err = zone_get_rootpath(target_zone, rootpath, in uninstall_func() [all...] |
/titanic_51/usr/src/cmd/fs.d/nfs/rp_basic/ |
H A D | libnfs_basic.c | 222 (void) make_pathname4(buf2, &fsl_array[i].rootpath); in get_fs_locations()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/ |
H A D | wanboot-cgi.c | 1696 char *rootpath = NULL; in main() local 1806 &rootpath, &miniroot_info, &https_rootserver)) { in main() 1809 payload = rootpath; in main() 1895 free_path(&rootpath); in main()
|
/titanic_51/usr/src/boot/sys/boot/i386/libi386/ |
H A D | pxe.c | 258 printf(" %s:%s", inet_ntoa(rootip), rootpath); in pxe_print()
|
/titanic_51/usr/src/uts/common/os/ |
H A D | zone.c | 4008 zone_mount_count(const char *rootpath) in zone_mount_count() argument 4012 size_t rootpathlen = strlen(rootpath); in zone_mount_count() 4021 * The rootpath must end with a '/' in zone_mount_count() 4023 ASSERT(rootpath[rootpathlen - 1] == '/'); in zone_mount_count() 4026 * This intentionally does not count the rootpath itself if that in zone_mount_count() 4032 if (strncmp(rootpath, refstr_value(vfsp->vfs_mntpt), in zone_mount_count() 4042 * Helper function to make sure that a zone created on 'rootpath' 4046 zone_is_nested(const char *rootpath) in zone_is_nested() argument 4049 size_t rootpathlen = strlen(rootpath); in zone_is_nested() 4055 * zone_set_root() appended '/' and '\0' at the end of rootpath in zone_is_nested() [all...] |