Lines Matching refs:rootdir

728 get_driver_class(char *rootdir, char *driver_name)
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)
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 root directory of the target environment
989 compare_controller(char *rootdir, char *dev1, char *dev2)
996 logdmsg(("compare_controller: rootdir = %s, dev1 = %s, dev2 = %s\n",
997 rootdir, dev1, dev2));
1001 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, dev1);
1039 * rootdir root directory of the target environment
1048 is_root_controller(char *rootdir, char *path)
1057 logdmsg(("is_root_controller: rootdir = %s, path = %s\n", rootdir,
1060 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, VFSTAB);
1079 if (compare_controller(rootdir, vfsent.vfs_special, path) == 0)
1105 if (compare_controller(rootdir, buf, path) == 0) {
1122 file_exists(char *rootdir, char *path)
1128 (void) snprintf(fullpath, MAXPATHLEN, "%s%s", rootdir, path);
1142 * rootdir root directory of the target environment
1152 is_mpxio_disabled(char *rootdir, char *path)
1158 logdmsg(("is_mpxio_disabled: rootdir = %s, path = %s\n",
1159 rootdir, path));
1161 if (file_exists(rootdir, SCSI_VHCI_CONF) == 0) {
1168 if (file_exists(rootdir, "/kernel/drv"))
1176 mpxio_disable = lookup_in_conf_file(rootdir, SCSI_VHCI_CONF, NULL);
1197 if ((mpxio_disable = lookup_in_conf_file(rootdir, FP_CONF, path))
1205 if ((mpxio_disable = lookup_in_conf_file(rootdir, QLC_CONF, path))
1225 mpxio_disable = is_root_controller(rootdir, path);
1425 build_pathlist(char *rootdir, char *vhcipath, char **pathlist, int npaths)
1432 mpxio_disabled = is_mpxio_disabled(rootdir, pathlist[i]);
1473 * rootdir root directory of the target environment
1478 is_dev_in_vfstab(char *rootdir, char *nodepath)
1487 logdmsg(("is_dev_in_vfstab: rootdir = %s, nodepath = %s\n",
1488 rootdir, nodepath));
1490 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, VFSTAB);
1503 rootdir, vfsent.vfs_special);
1614 * rootdir root directory of the target environment
1623 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz)
1633 logdmsg(("get_target_devlink: rootdir = %s, physpath = %s\n",
1634 rootdir, physpath));
1640 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/rdsk", rootdir);
1642 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/dsk", rootdir);
1664 devname + strlen(rootdir)));
1665 return (strlcpy(buf, devname + strlen(rootdir),
1678 * rootdir root directory
1679 * devname a /dev name or /devices name under rootdir
1687 devname2physpath(char *rootdir, char *devname, char *physpath, int physpathlen)
1694 logdmsg(("devname2physpath: rootdir = %s, devname = %s\n",
1695 rootdir, devname));
1699 if (*rootdir == '\0')
1703 rootdir, devname);
1725 * rootdir root directory of the target environment
1734 devfs_target2install(const char *rootdir, const char *devname, char *buf,
1739 logdmsg(("devfs_target2install: rootdir = %s, devname = %s\n",
1740 STRVAL(rootdir), STRVAL(devname)));
1742 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0)
1745 if (strcmp(rootdir, "/") == 0)
1746 rootdir = "";
1748 if (devname2physpath((char *)rootdir, (char *)devname, physpath,
1786 * rootdir root directory of the target environment
1795 devfs_install2target(const char *rootdir, const char *devname, char *buf,
1800 logdmsg(("devfs_install2target: rootdir = %s, devname = %s\n",
1801 STRVAL(rootdir), STRVAL(devname)));
1803 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0)
1806 if (strcmp(rootdir, "/") == 0)
1807 rootdir = "";
1829 if ((npaths = build_pathlist((char *)rootdir, physpath,
1842 if (is_dev_in_vfstab((char *)rootdir,
1859 return (get_target_devlink((char *)rootdir, physpath, buf, bufsz));