Home
last modified time | relevance | path

Searched refs:rootdir (Results 1 – 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c728 get_driver_class(char *rootdir, char *driver_name) in get_driver_class() argument
736 rootdir, driver_name)); in get_driver_class()
738 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, DRIVER_CLASSES); in get_driver_class()
806 lookup_in_conf_file(char *rootdir, char *conf_file, char *path) in lookup_in_conf_file() argument
821 "path = \"%s\"\n", rootdir, conf_file, STRVAL(path))); in lookup_in_conf_file()
823 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, conf_file); in lookup_in_conf_file()
907 par_driver_class = get_driver_class(rootdir, par_driver_name); in lookup_in_conf_file()
989 compare_controller(char *rootdir, char *dev1, char *dev2) in compare_controller() argument
997 rootdir, dev1, dev2)); in compare_controller()
1001 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, dev1); in compare_controller()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vfs.c51 vnode_t *rootdir = NULL; /* pointer to root inode vnode. */ variable
77 if (rootdir == NULL) { in fksmbsrv_vfs_init()
91 rootdir = vp; in fksmbsrv_vfs_init()
94 zone0.zone_rootvp = rootdir; in fksmbsrv_vfs_init()
105 if (rootdir != NULL) { in fksmbsrv_vfs_fini()
106 VN_RELE(rootdir); in fksmbsrv_vfs_fini()
107 rootdir = NULL; in fksmbsrv_vfs_fini()
162 if ((vp = rootdir) == NULL) in fsop_root()
178 if ((vp = rootdir) == NULL) in fsop_statfs()
H A Dfake_lookup.c130 vp = rootvp = rootdir; in lookuppnatcred()
355 if (rootvp != rootdir) in lookuppnvp()
496 if (rootvp != rootdir) in lookuppnvp()
520 if (rootvp != rootdir) in lookuppnvp()
567 if (rootvp != rootdir) in lookuppnvp()
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dgrub-set-default.in24 rootdir=
78 grubdir=${rootdir}/boot/grub
82 grubdir=${rootdir}/grub
86 echo "No GRUB directory found under ${rootdir}/" 1>&2
H A Dgrub-install.in36 rootdir=
241 rootdir=`echo "$option" | sed 's/--root-directory=//'` ;;
285 bootdir=${rootdir}
289 bootdir=${rootdir}/boot
380 root_device=`find_device ${rootdir}`
419 ${grub_set_default} --root-directory=${rootdir} default
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_lookup.c61 extern vnode_t *rootdir;
86 cvp = (dvp != NULL) ? dvp : rootdir; in fake_lookup()
106 rootdir, cr, NULL, NULL, NULL); in fake_lookup()
148 dvp = rootdir; in fake_lookup_dir()
157 error = fake_lookup(rootdir, tpn, &dvp); in fake_lookup_dir()
H A Dfake_vfs.c107 vnode_t *rootdir; /* pointer to root inode vnode. */ variable
555 vp = rootdir; in fake_domount()
807 error = VFS_ROOT(vfsp, &rootdir); in fake_domount()
1602 if (rootdir != NULL) { in fake_dounmount()
1603 ASSERT(rootdir != coveredvp); in fake_dounmount()
1604 VN_RELE(rootdir); in fake_dounmount()
1605 rootdir = NULL; in fake_dounmount()
1619 err2 = VFS_ROOT(vfsp, &rootdir); in fake_dounmount()
1634 rootdir = coveredvp; in fake_dounmount()
1931 rootdir = vn_alloc(KM_SLEEP); in vfsinit()
[all …]
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c130 dlmgmt_door_attach(zoneid_t zoneid, char *rootdir) in dlmgmt_door_attach() argument
136 (void) snprintf(doorpath, sizeof (doorpath), "%s%s", rootdir, in dlmgmt_door_attach()
179 char rootdir[MAXPATHLEN], tmpfsdir[MAXPATHLEN]; in dlmgmt_zone_init() local
184 rootdir[0] = '\0'; in dlmgmt_zone_init()
185 } else if (zone_getattr(zoneid, ZONE_ATTR_ROOT, rootdir, in dlmgmt_zone_init()
186 sizeof (rootdir)) < 0) { in dlmgmt_zone_init()
193 (void) snprintf(tmpfsdir, sizeof (tmpfsdir), "%s%s", rootdir, in dlmgmt_zone_init()
207 if ((err = dlmgmt_db_init(zoneid, rootdir)) != 0) in dlmgmt_zone_init()
209 return (dlmgmt_door_attach(zoneid, rootdir)); in dlmgmt_zone_init()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_setinfo_file.c118 uint64_t rootdir; in smb2_setf_rename() local
124 &flags, &rootdir, &namelen); in smb2_setf_rename()
132 if ((rootdir != 0) || (namelen == 0) || (namelen >= SMB_MAXPATHLEN)) { in smb2_setf_rename()
149 uint64_t rootdir; in smb2_setf_link() local
155 &flags, &rootdir, &namelen); in smb2_setf_link()
163 if ((rootdir != 0) || (namelen == 0) || (namelen >= SMB_MAXPATHLEN)) { in smb2_setf_link()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c425 char rootdir[DFS_PATH_MAX]; in dfs_namespace_getflavor() local
428 if (dfs_namespace_path(name, rootdir, DFS_PATH_MAX) != ERROR_SUCCESS) in dfs_namespace_getflavor()
432 if (dfs_root_getinfo(rootdir, &info, 2) != ERROR_SUCCESS) in dfs_namespace_getflavor()
452 dfs_root_getinfo(const char *rootdir, dfs_info_t *info, uint32_t infolvl) in dfs_root_getinfo() argument
464 if ((xfd = dfs_root_xopen(rootdir, O_RDONLY)) > 0) { in dfs_root_getinfo()
481 dfs_root_setinfo(const char *rootdir, dfs_info_t *info, uint32_t infolvl) in dfs_root_setinfo() argument
488 if ((xfd = dfs_root_xopen(rootdir, O_RDWR)) < 0) { in dfs_root_setinfo()
938 char rootdir[DFS_PATH_MAX]; in dfs_path_parse() local
956 if (dfs_namespace_path(unc->unc_share, rootdir, DFS_PATH_MAX) in dfs_path_parse()
974 "%s/%s", rootdir, unc->unc_path); in dfs_path_parse()
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Dlookup.c157 rootvp = rootdir; in lookuppnatcred()
158 else if (rootvp != rootdir) /* no need to VN_HOLD rootdir */ in lookuppnatcred()
428 if (rootvp != rootdir) in lookuppnvp()
574 if (rootvp != rootdir) in lookuppnvp()
600 if (rootvp != rootdir) in lookuppnvp()
650 if (rootvp != rootdir) in lookuppnvp()
944 if (vn_compare(vrootp, rootdir)) in localpath()
950 vp = rootdir; in localpath()
965 if (VOP_LOOKUP(vp, component, &cvp, &pn, 0, rootdir, cr, in localpath()
1030 if (vrootp != rootdir) { in vnode_valid_pn()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb.c468 static char rootdir[MAXPATHLEN]; in mdb_create() local
493 (void) strncpy(rootdir, execname, sizeof (rootdir)); in mdb_create()
494 rootdir[sizeof (rootdir) - 1] = '\0'; in mdb_create()
495 (void) strdirname(rootdir); in mdb_create()
497 if (strcmp(strbasename(rootdir), "sparcv9") == 0 || in mdb_create()
498 strcmp(strbasename(rootdir), "sparcv7") == 0 || in mdb_create()
499 strcmp(strbasename(rootdir), "amd64") == 0 || in mdb_create()
500 strcmp(strbasename(rootdir), "i86") == 0) in mdb_create()
501 (void) strdirname(rootdir); in mdb_create()
503 if (strcmp(strbasename(rootdir), "bin") == 0) { in mdb_create()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_snap.c158 topo_open(int version, const char *rootdir, int *errp) in topo_open() argument
173 if (rootdir != NULL && stat(rootdir, &st) < 0) in topo_open()
203 if (rootdir == NULL) { in topo_open()
204 rootdir = topo_hdl_strdup(thp, "/"); in topo_open()
205 thp->th_rootdir = (char *)rootdir; in topo_open()
210 len = strlen(rootdir); in topo_open()
214 if (rootdir[len - 1] != '/') { in topo_open()
216 (void) snprintf(rpath, len + 2, "%s/", rootdir); in topo_open()
218 rpath = (char *)rootdir; in topo_open()
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c1171 _da_lock_devdb(char *rootdir) in _da_lock_devdb() argument
1183 if (rootdir == NULL) { in _da_lock_devdb()
1187 if (snprintf(path, size, "%s%s", rootdir, DA_DB_LOCK) >= size) in _da_lock_devdb()
1238 da_open_devdb(char *rootdir, FILE **dafp, FILE **dmfp, int flag) in da_open_devdb() argument
1260 if ((lockfd = _da_lock_devdb(rootdir)) == -1) in da_open_devdb()
1271 if (rootdir == NULL) { in da_open_devdb()
1274 if (snprintf(path, sizeof (path), "%s%s", rootdir, in da_open_devdb()
1304 if (rootdir == NULL) { in da_open_devdb()
1307 if (snprintf(path, sizeof (path), "%s%s", rootdir, in da_open_devdb()
1503 char *rootdir = NULL; in da_update_device() local
[all …]
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dnet-install115 rootdir=/etc/svc/volatile
116 /usr/bin/mkdir -p $rootdir/etc/inet
119 msg="Error creating \"$rootdir/etc/inet\" directory"
123 cmd="$ROUTE -R $rootdir -p add $details"
/illumos-gate/usr/src/cmd/fm/modules/common/syslog-msgs/
H A Dsyslog.c341 char *facname, *tz, *rootdir, *urlbase; in _fmd_init() local
393 rootdir = fmd_prop_get_string(hdl, "fmd.rootdir"); in _fmd_init()
394 syslog_msghdl = fmd_msg_init(rootdir, FMD_MSG_VERSION); in _fmd_init()
395 fmd_prop_free_string(hdl, rootdir); in _fmd_init()
/illumos-gate/usr/src/lib/varpd/libvarpd/common/
H A Dlibvarpd_persist.c79 libvarpd_persist_enable(varpd_handle_t *vhp, const char *rootdir) in libvarpd_persist_enable() argument
85 fd = open(rootdir, O_RDONLY); in libvarpd_persist_enable()
93 rootdir, fd, errno); in libvarpd_persist_enable()
100 rootdir, fd, errno); in libvarpd_persist_enable()
110 rootdir, fd, errno); in libvarpd_persist_enable()
/illumos-gate/usr/src/cmd/rm/
H A Drm.c52 static struct stat rootdir; variable
142 if (recursive && stat("/", &rootdir) != 0) { in main()
351 if (temp.st_ino == rootdir.st_ino && in rm()
352 temp.st_dev == rootdir.st_dev) { in rm()
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones.c1180 char *rootdir; in z_set_zone_root() local
1191 rootdir = _z_strdup((char *)zroot); in z_set_zone_root()
1192 z_canoninplace(rootdir); in z_set_zone_root()
1194 if (strcmp(rootdir, "/") == 0) { in z_set_zone_root()
1195 rootdir[0] = '\0'; in z_set_zone_root()
1206 if (*rootdir != '\0') { in z_set_zone_root()
1207 _z_global_data._z_root_dir = _z_strdup(rootdir); in z_set_zone_root()
1214 zonecfg_set_root(rootdir); in z_set_zone_root()
1216 free(rootdir); in z_set_zone_root()
/illumos-gate/usr/src/uts/common/os/
H A Dcore.c137 startvp = rootdir; in remove_core_file()
138 rootvp = rootdir; in remove_core_file()
141 if (rootvp != rootdir) in remove_core_file()
225 startvp = rootvp = rootdir; in create_core_file()
232 if (rootvp != rootdir) in create_core_file()
/illumos-gate/usr/src/cmd/svr4pkg/pkgscripts/
H A Dr.awk.sh44 /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{
H A Dr.sed.sh44 /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{
H A Di.awk.sh40 /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{
H A Di.sed.sh40 /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{
H A Di.build.sh40 /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{

123