Searched defs:rootpath (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/boot/lib/libstand/
H A Dglobals.c22 char rootpath[FNAME_SIZE] = "/"; /* root mount path */ variable
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dscratchops.c83 zonecfg_open_scratch(const char *rootpath, boolean_t createfile) argument
92 rootpath);
H A Dlibzonecfg.c250 zonecfg_set_root(const char *rootpath) argument
254 if (rootpath == NULL || rootpath[0] == '\0' || rootpath[1] == '\0' ||
255 (zonecfg_root = strdup(rootpath)) == NULL)
3082 * This function finds everything mounted under a zone's rootpath.
3083 * This returns the number of mounts under rootpath, or -1 on error.
3091 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *, argument
3101 assert(rootpath != NULL);
3103 if ((zfsl = snprintf(zfs_path, sizeof (zfs_path), "%s/.zfs/", rootpath))
5627 zone_get_rootpath(char *zone_name, char *rootpath, size_t rp_sz) argument
[all...]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dio.c750 char rootpath[MAXPATHLEN]; local
765 rootpath[0] = '\0';
772 strcat(rootpath, devpath + strlen(DEV_PREFIX) - 1);
774 cptr = strrchr(rootpath, ':');
794 if (strcmp(rootpath, devfs_path) == 0) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c153 static char rootpath[] = "PATH=/usr/sbin:/usr/bin"; variable
431 envinit[ENVINIT_PATH] = rootpath;
H A Din.rshd.c410 static char rootpath[] = "PATH=/usr/sbin:/usr/bin"; variable
1115 path = (pwd->pw_uid == 0) ? rootpath : userpath;
/illumos-gate/usr/src/cmd/fs.d/
H A Dfslib.c423 char rootpath[MAXPATHLEN]; member in struct:zone_summary
469 summaries[j].rootpath, sizeof (summaries[j].rootpath));
477 * Adding a trailing '/' to the zone's rootpath allows us to
481 * As an example, if the zone's rootpath is "/foo/root",
483 * "/foo/rootpath" doesn't.
485 (void) strlcat(summaries[j].rootpath, "/",
486 sizeof (summaries[j].rootpath));
502 if (strncmp(mntpt, summaries[i].rootpath,
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dmount.c393 struct nfs_file rootpath; local
444 error = lookup(path, &rootpath, TRUE);
450 roothandle = rootpath; /* structure copy */
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dpxe.c79 static void pxe_setnfshandle(char *rootpath);
285 * which brought us to life and a default rootpath.
291 if (!rootpath[0])
292 strcpy(rootpath, PXENFSROOTPATH);
295 for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++)
296 if (rootpath[i] == ':')
298 if (i && i != FNAME_SIZE && rootpath[i] == ':') {
299 rootpath[i++] = '\0';
300 if (inet_addr(&rootpath[0]) != INADDR_NONE)
301 rootip.s_addr = inet_addr(&rootpath[
452 pxe_setnfshandle(char *rootpath) argument
507 pxe_setnfshandle(char *rootpath) argument
[all...]
/illumos-gate/usr/src/cmd/prtconf/
H A Dpdevinfo.c175 char *rootpath; local
181 rootpath = "/";
197 if (strcmp(rootpath, "/") != 0) {
212 root_node = di_init_impl(rootpath, flag, &fetch);
218 root_node = di_init(rootpath, flag);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/
H A Dwanboot-cgi.c1696 char *rootpath = NULL; local
1806 &rootpath, &miniroot_info, &https_rootserver)) {
1809 payload = rootpath;
1895 free_path(&rootpath);
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c617 char rootpath[MAXPATHLEN]; local
624 /* determine the zone rootpath */
637 (void) strlcpy(rootpath, luroot, sizeof (rootpath));
640 rootpath, sizeof (rootpath)) != Z_OK) {
646 if ((rv = valid_mount_path(zlogp, rootpath, spec, dir, fstype)) < 0) {
648 rootpath, dir);
652 if (make_one_dir(zlogp, rootpath, dir,
666 if ((rv = valid_mount_path(zlogp, rootpath, spe
[all...]
H A Dvplat.c989 valid_mount_path(zlog_t *zlogp, const char *rootpath, const char *spec, argument
1008 * Join rootpath and dir. Make sure abspath ends with '/', this
1015 "%s%s/", rootpath, dir) >= sizeof (abspath)) {
1017 rootpath, dir);
1022 * Starting with rootpath, verify the mount path one component
1025 slashp = &abspath[strlen(rootpath)];
1192 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, argument
1200 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special,
1203 rootpath, fsptr->zone_fs_dir);
1207 if (make_one_dir(zlogp, rootpath, fspt
1356 build_mounted_pre_var(zlog_t *zlogp, char *rootpath, size_t rootlen, const char *zonepath, char *luroot, size_t lurootlen) argument
1435 build_mounted_post_var(zlog_t *zlogp, zone_mnt_t mount_cmd, char *rootpath, const char *luroot) argument
1674 char rootpath[MAXPATHLEN]; local
2901 char rootpath[MAXPATHLEN]; local
3706 validate_rootds_label(zlog_t *zlogp, char *rootpath, m_label_t *zone_sl) argument
3797 tsol_mounts(zlog_t *zlogp, char *zone_name, char *rootpath) argument
4308 duplicate_zone_root(zlog_t *zlogp, const char *rootpath) argument
4364 duplicate_reachable_path(zlog_t *zlogp, const char *rootpath) argument
4759 char rootpath[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_dlinet.c1269 struct netbuf *server_address, char *rootpath, int pathlen)
1283 (void) strncpy(rootpath, server_path_c, pathlen);
1268 cacheinfo(char *name, int namelen, struct netbuf *server_address, char *rootpath, int pathlen) argument
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.c943 char rootpath[MAXPATHLEN]; /* root path */ local
1131 if (snprintf(rootpath, sizeof (rootpath), "%s/root", rpath) >=
1132 sizeof (rootpath)) {
1141 if ((res = stat(rootpath, &stbuf)) == 0) {
1155 "directory.\n"), rootpath);
1161 "owned by root.\n"), rootpath);
1167 "0755.\n"), rootpath);
4901 char rootpath[MAXPATHLEN], zonepath[MAXPATHLEN]; local
5005 if ((err = zone_get_rootpath(target_zone, rootpath,
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dzone.c4138 zone_mount_count(const char *rootpath) argument
4142 size_t rootpathlen = strlen(rootpath);
4151 * The rootpath must end with a '/'
4153 ASSERT(rootpath[rootpathlen - 1] == '/');
4156 * This intentionally does not count the rootpath itself if that
4162 if (strncmp(rootpath, refstr_value(vfsp->vfs_mntpt),
4172 * Helper function to make sure that a zone created on 'rootpath'
4176 zone_is_nested(const char *rootpath) argument
4179 size_t rootpathlen = strlen(rootpath);
4185 * zone_set_root() appended '/' and '\0' at the end of rootpath
[all...]
/illumos-gate/usr/src/uts/common/nfs/
H A Dnfs4_kprot.h232 pathname4 rootpath; member in struct:fs_location4

Completed in 162 milliseconds