Searched defs:rootdir (Results 1 - 25 of 25) sorted by relevance

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_builtin.c102 topo_builtin_create(topo_hdl_t *thp, const char *rootdir) argument
H A Dtopo_snap.c106 topo_open(int version, const char *rootdir, int *errp) argument
126 if (rootdir != NULL && stat(rootdir, &st) < 0)
156 if (rootdir == NULL) {
157 rootdir = topo_hdl_strdup(thp, "/");
158 thp->th_rootdir = (char *)rootdir;
163 len = strlen(rootdir);
167 if (rootdir[len - 1] != '/') {
169 (void) snprintf(rpath, len + 2, "%s/", rootdir);
171 rpath = (char *)rootdir;
[all...]
H A Dtopo_subr.c268 topo_search_path(topo_mod_t *mod, const char *rootdir, const char *file) argument
277 (void) snprintf(sp, PATH_MAX, TOPO_PLATFORM_PATH, rootdir,
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_setinfo_file.c117 uint64_t rootdir; local
123 &flags, &rootdir, &namelen);
131 if ((rootdir != 0) || (namelen == 0) || (namelen >= SMB_MAXPATHLEN)) {
148 uint64_t rootdir; local
154 &flags, &rootdir, &namelen);
162 if ((rootdir != 0) || (namelen == 0) || (namelen >= SMB_MAXPATHLEN)) {
H A Dsmb_set_fileinfo.c518 * - If rootdir is not NULL respond with NT_STATUS_INVALID_PARAMETER.
534 uint32_t rootdir, namelen; local
539 &flags, &rootdir, &namelen);
547 if ((rootdir != 0) || (namelen == 0) || (namelen >= MAXNAMELEN)) {
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_scheme.c253 fmd_scheme_hash_create(const char *rootdir, const char *dirpath) argument
260 (void) snprintf(path, sizeof (path), "%s/%s", rootdir, dirpath);
/illumos-gate/usr/src/cmd/rm/
H A Drm.c52 static struct stat rootdir; variable in typeref:struct:stat
142 if (recursive && stat("/", &rootdir) != 0) {
351 if (temp.st_ino == rootdir.st_ino &&
352 temp.st_dev == rootdir.st_dev) {
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c129 dlmgmt_door_attach(zoneid_t zoneid, char *rootdir) argument
135 (void) snprintf(doorpath, sizeof (doorpath), "%s%s", rootdir,
178 char rootdir[MAXPATHLEN], tmpfsdir[MAXPATHLEN]; local
183 rootdir[0] = '\0';
184 } else if (zone_getattr(zoneid, ZONE_ATTR_ROOT, rootdir,
185 sizeof (rootdir)) < 0) {
192 (void) snprintf(tmpfsdir, sizeof (tmpfsdir), "%s%s", rootdir,
208 return (dlmgmt_door_attach(zoneid, rootdir));
/illumos-gate/usr/src/cmd/fm/modules/common/syslog-msgs/
H A Dsyslog.c341 char *facname, *tz, *rootdir, *urlbase; local
393 rootdir = fmd_prop_get_string(hdl, "fmd.rootdir");
394 syslog_msghdl = fmd_msg_init(rootdir, FMD_MSG_VERSION);
395 fmd_prop_free_string(hdl, rootdir);
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vfs.c50 vnode_t *rootdir = NULL; /* pointer to root inode vnode. */ variable
74 if (rootdir == NULL) {
89 rootdir = vp;
92 zone0.zone_rootvp = rootdir;
151 if ((vp = rootdir) == NULL)
166 if ((vp = rootdir) == NULL)
/illumos-gate/usr/src/common/fs/
H A Dpcfs.c415 fat_map(int blk, int rootdir) argument
420 if (rootdir) {
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.h152 char *rootdir; member in struct:_da_optargs
H A Ddevalloc.c1171 _da_lock_devdb(char *rootdir) argument
1183 if (rootdir == NULL) {
1187 if (snprintf(path, size, "%s%s", rootdir, DA_DB_LOCK) >= size)
1238 da_open_devdb(char *rootdir, FILE **dafp, FILE **dmfp, int flag) argument
1260 if ((lockfd = _da_lock_devdb(rootdir)) == -1)
1271 if (rootdir == NULL) {
1274 if (snprintf(path, sizeof (path), "%s%s", rootdir,
1304 if (rootdir == NULL) {
1307 if (snprintf(path, sizeof (path), "%s%s", rootdir,
1503 char *rootdir local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dnetdfs.c1352 char rootdir[DFS_PATH_MAX]; local
1358 status = dfs_namespace_path(unc->unc_share, rootdir, DFS_PATH_MAX);
1359 if ((status == ERROR_SUCCESS) && (chdir(rootdir) == 0)) {
H A Ddfs.c425 char rootdir[DFS_PATH_MAX]; local
428 if (dfs_namespace_path(name, rootdir, DFS_PATH_MAX) != ERROR_SUCCESS)
432 if (dfs_root_getinfo(rootdir, &info, 2) != ERROR_SUCCESS)
452 dfs_root_getinfo(const char *rootdir, dfs_info_t *info, uint32_t infolvl) argument
464 if ((xfd = dfs_root_xopen(rootdir, O_RDONLY)) > 0) {
475 * Root is specified by 'rootdir' and the target is specified by
481 dfs_root_setinfo(const char *rootdir, dfs_info_t *info, uint32_t infolvl) argument
488 if ((xfd = dfs_root_xopen(rootdir, O_RDWR)) < 0) {
938 char rootdir[DFS_PATH_MAX]; local
956 if (dfs_namespace_path(unc->unc_share, rootdir, DFS_PATH_MA
1057 char rootdir[DFS_PATH_MAX]; local
1143 dfs_root_add(const char *rootdir, dfs_info_t *info) argument
1162 dfs_root_remove(const char *rootdir) argument
1194 dfs_root_xopen(const char *rootdir, int oflag) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb.c461 static char rootdir[MAXPATHLEN]; local
485 (void) strncpy(rootdir, execname, sizeof (rootdir));
486 rootdir[sizeof (rootdir) - 1] = '\0';
487 (void) strdirname(rootdir);
489 if (strcmp(strbasename(rootdir), "sparcv9") == 0 ||
490 strcmp(strbasename(rootdir), "sparcv7") == 0 ||
491 strcmp(strbasename(rootdir), "amd64") == 0 ||
492 strcmp(strbasename(rootdir), "i8
[all...]
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones.c1180 char *rootdir; local
1191 rootdir = _z_strdup((char *)zroot);
1192 z_canoninplace(rootdir);
1194 if (strcmp(rootdir, "/") == 0) {
1195 rootdir[0] = '\0';
1206 if (*rootdir != '\0') {
1207 _z_global_data._z_root_dir = _z_strdup(rootdir);
1214 zonecfg_set_root(rootdir);
1216 free(rootdir);
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdladm.c825 dladm_set_rootdir(const char *rootdir) argument
829 if (rootdir == NULL || *rootdir != '/' ||
830 (dp = opendir(rootdir)) == NULL)
833 (void) strncpy(dladm_rootdir, rootdir, MAXPATHLEN);
/illumos-gate/usr/src/lib/libzpool/common/
H A Dkernel.c59 vnode_t *rootdir = (vnode_t *)0xabcd1234; variable
78 * starting vp is always rootdir (which is true for spa_directory.c, the only
176 ASSERT(startvp == rootdir);
382 if (vn_openat(name, UIO_SYSSPACE, FREAD, 0, &vp, 0, 0, rootdir,
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c728 get_driver_class(char *rootdir, char *driver_name) argument
735 logdmsg(("get_driver_class: rootdir = %s, driver name = %s\n",
736 rootdir, driver_name));
738 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, DRIVER_CLASSES);
806 lookup_in_conf_file(char *rootdir, char *conf_file, char *path) argument
820 logdmsg(("lookup_in_conf_file: rootdir = \"%s\", conf_file = \"%s\", "
821 "path = \"%s\"\n", rootdir, conf_file, STRVAL(path)));
823 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, conf_file);
907 par_driver_class = get_driver_class(rootdir, par_driver_name);
978 * rootdir roo
989 compare_controller(char *rootdir, char *dev1, char *dev2) argument
1048 is_root_controller(char *rootdir, char *path) argument
1122 file_exists(char *rootdir, char *path) argument
1152 is_mpxio_disabled(char *rootdir, char *path) argument
1425 build_pathlist(char *rootdir, char *vhcipath, char **pathlist, int npaths) argument
1478 is_dev_in_vfstab(char *rootdir, char *nodepath) argument
1623 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz) argument
1687 devname2physpath(char *rootdir, char *devname, char *physpath, int physpathlen) argument
1734 devfs_target2install(const char *rootdir, const char *devname, char *buf, size_t bufsz) argument
1795 devfs_install2target(const char *rootdir, const char *devname, char *buf, size_t bufsz) argument
[all...]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_vfs.c107 vnode_t *rootdir; /* pointer to root inode vnode. */ variable
550 * Test jig specific: mount on rootdir
554 vp = rootdir;
737 * Do sort of like vfs_add for vp=rootdir
804 * Replace rootdir with the mounted root.
806 error = VFS_ROOT(vfsp, &rootdir);
1598 * Need to release rootdir before unmount or VFS_UNMOUNT
1601 if (rootdir != NULL) {
1602 ASSERT(rootdir != coveredvp);
1603 VN_RELE(rootdir);
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c488 uintptr_t rootdir; local
504 if (mdb_readvar(&rootdir, "rootdir") == -1) {
505 mdb_warn("failed to read 'rootdir'");
519 if (addr == rootdir) {
/illumos-gate/usr/src/uts/common/fs/
H A Dvfs.c134 vnode_t *rootdir; /* pointer to root inode vnode. */ variable
842 * Get vnode for '/'. Set up rootdir, u.u_rdir and u.u_cdir
847 if (VFS_ROOT(rootvfs, &rootdir))
860 PTOU(p)->u_cdir = rootdir;
869 global_zone->zone_rootvp = rootdir;
3908 if (rootdir == NULL) {
4053 if (rootdir == NULL && !modrootloaded)
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c1868 uintptr_t rootdir; local
1883 if (mdb_readvar(&rootdir, "rootdir") == -1) {
1884 mdb_warn("failed to read rootdir");
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c7901 get_title(char *rootdir) argument
7910 (void) snprintf(release, sizeof (release), "%s/etc/release", rootdir);

Completed in 299 milliseconds