/illumos-gate/usr/src/boot/common/ |
H A D | dev_net.c | 184 setenv("boot.tftproot.path", rootpath, 1); in net_open() 187 setenv("boot.nfsroot.path", rootpath, 1); in net_open() 313 if (bp_getfile(sock, "root", &rootip, rootpath)) { in net_getparams() 394 if (strncmp(rootpath, uri_schemes[i].scheme, in net_parse_rootpath() 401 ptr = rootpath; in net_parse_rootpath() 404 if (strcmp(rootpath, "/") == 0) { in net_parse_rootpath() 410 addr = inet_addr(rootpath); in net_parse_rootpath() 411 bcopy(ptr, rootpath, strlen(ptr) + 1); in net_parse_rootpath() 429 strlcat(rootpath, "/", sizeof (rootpath)); in net_parse_rootpath() 440 bcopy(val, rootpath, strlen(val) + 1); in net_parse_rootpath() [all …]
|
/illumos-gate/usr/src/cmd/tsol/zones/ |
H A D | zoneshare.sh | 55 rootpath=$prefix/root 79 `egrep -v "(^[#])" | nawk -v rootpath=$rootpath \
|
H A D | zoneunshare.sh | 55 rootpath=$prefix/root 77 `egrep "^$rootpath"|nawk '{ print "/usr/sbin/unshare " $1 ";" }'|/sbin/sh`
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1031 rootpath, dir); in valid_mount_path() 1489 rootpath, *cpp); in build_mounted_post_var() 1717 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in mount_filesystems() 1811 rootpath, sizeof (rootpath), zonepath, luroot, sizeof (luroot))) in mount_filesystems() 1827 rootpath[slen] = '\0'; in mount_filesystems() 1831 rootpath[slen] = '/'; in mount_filesystems() 3844 rootpath); in validate_rootds_label() 4453 (rootpath[zlen] == '\0' || rootpath[zlen] == '/')) { in duplicate_zone_root() 4920 if (zone_get_rootpath(zone_name, rootpath, sizeof (rootpath)) != Z_OK) { in vplat_create() 4925 resolve_lofs(zlogp, rootpath, sizeof (rootpath)); in vplat_create() [all …]
|
H A D | zoneadmd.c | 620 char rootpath[MAXPATHLEN]; in mount_early_fs() local 640 (void) strlcpy(rootpath, luroot, sizeof (rootpath)); in mount_early_fs() 643 rootpath, sizeof (rootpath)) != Z_OK) { in mount_early_fs() 649 if ((rv = valid_mount_path(zlogp, rootpath, spec, dir, fstype)) < 0) { in mount_early_fs() 651 rootpath, dir); in mount_early_fs() 655 if (make_one_dir(zlogp, rootpath, dir, in mount_early_fs() 669 if ((rv = valid_mount_path(zlogp, rootpath, spec, dir, in mount_early_fs() 672 "%s%s is not a valid mount point", rootpath, dir); in mount_early_fs()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fslib.c | 421 char rootpath[MAXPATHLEN]; member 467 summaries[j].rootpath, sizeof (summaries[j].rootpath)); in fs_get_zone_summaries() 483 (void) strlcat(summaries[j].rootpath, "/", in fs_get_zone_summaries() 484 sizeof (summaries[j].rootpath)); in fs_get_zone_summaries() 500 if (strncmp(mntpt, summaries[i].rootpath, in fs_find_zone()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | globals.c | 21 char rootpath[FNAME_SIZE] = "/"; /* root mount path */ variable
|
H A D | tftp.c | 463 pathsize = (strlen(rootpath) + 1 + strlen(path) + 1) * sizeof (char); in tftp_open() 469 if (rootpath[strlen(rootpath) - 1] == '/' || path[0] == '/') in tftp_open() 474 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() 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 | 389 strlcpy(rootpath, val, sizeof (rootpath)); in vend_rfc1048()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 81 zonecfg_open_scratch(const char *rootpath, boolean_t createfile) in zonecfg_open_scratch() argument 90 rootpath); in zonecfg_open_scratch()
|
H A D | libzonecfg.c | 256 zonecfg_set_root(const char *rootpath) in zonecfg_set_root() argument 260 if (rootpath == NULL || rootpath[0] == '\0' || rootpath[1] == '\0' || in zonecfg_set_root() 261 (zonecfg_root = strdup(rootpath)) == NULL) in zonecfg_set_root() 3093 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *, in zonecfg_find_mounts() argument 3103 assert(rootpath != NULL); in zonecfg_find_mounts() 3105 if ((zfsl = snprintf(zfs_path, sizeof (zfs_path), "%s/.zfs/", rootpath)) in zonecfg_find_mounts() 3109 l = strlen(rootpath); in zonecfg_find_mounts() 3122 if ((strncmp(rootpath, m.mnt_mountp, l) == 0) && in zonecfg_find_mounts() 5629 zone_get_rootpath(char *zone_name, char *rootpath, size_t rp_sz) in zone_get_rootpath() argument 5636 if ((err = zone_get_zonepath(zone_name, rootpath, rp_sz)) != Z_OK) in zone_get_rootpath() [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmexpress.c | 151 char *rootpath = "/"; in get_ttymode_prop() local 168 root = di_init(rootpath, DINFOPROP); in get_ttymode_prop()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | mount.c | 391 struct nfs_file rootpath; in nfs4init() local 442 error = lookup(path, &rootpath, TRUE); in nfs4init() 448 roothandle = rootpath; /* structure copy */ in nfs4init()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 947 char rootpath[MAXPATHLEN]; /* root path */ in validate_zonepath() local 1135 if (snprintf(rootpath, sizeof (rootpath), "%s/root", rpath) >= in validate_zonepath() 1136 sizeof (rootpath)) { in validate_zonepath() 1145 if ((res = stat(rootpath, &stbuf)) == 0) { in validate_zonepath() 1159 "directory.\n"), rootpath); in validate_zonepath() 1165 "owned by root.\n"), rootpath); in validate_zonepath() 1171 "0755.\n"), rootpath); in validate_zonepath() 4910 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; in uninstall_func() local 5015 sizeof (rootpath))) != Z_OK) { in uninstall_func() 5042 err = zonecfg_find_mounts(rootpath, NULL, NULL); in uninstall_func() [all …]
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 178 char *rootpath; in prtconf_devinfo() local 184 rootpath = "/"; in prtconf_devinfo() 200 if (strcmp(rootpath, "/") != 0) { in prtconf_devinfo() 215 root_node = di_init_impl(rootpath, flag, &fetch); in prtconf_devinfo() 221 root_node = di_init(rootpath, flag); in prtconf_devinfo()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | zone.c | 4167 zone_mount_count(const char *rootpath) in zone_mount_count() argument 4171 size_t rootpathlen = strlen(rootpath); in zone_mount_count() 4182 ASSERT(rootpath[rootpathlen - 1] == '/'); in zone_mount_count() 4191 if (strncmp(rootpath, refstr_value(vfsp->vfs_mntpt), in zone_mount_count() 4205 zone_is_nested(const char *rootpath) in zone_is_nested() argument 4208 size_t rootpathlen = strlen(rootpath); in zone_is_nested() 4216 if ((rootpathlen <= 3) && (rootpath[0] == '/') && in zone_is_nested() 4217 (rootpath[1] == '/') && (rootpath[2] == '\0')) in zone_is_nested() 4225 if (strncmp(rootpath, zone->zone_rootpath, in zone_is_nested()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | pxe.c | 265 printf(" %s:%s", inet_ntoa(rootip), rootpath); in pxe_print()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_stub_vnops.c | 1795 for (i = 0; i < fsp->rootpath.pathname4_len; i++) { in nfs4_trigger_esi_create_referral() 1798 comp = &fsp->rootpath.pathname4_val[i]; in nfs4_trigger_esi_create_referral() 1806 if (fsp->rootpath.pathname4_len != 0) in nfs4_trigger_esi_create_referral()
|