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)
1104 if (compare_controller(rootdir, buf, path) == 0) {
1121 file_exists(char *rootdir, char *path)
1127 (void) snprintf(fullpath, MAXPATHLEN, "%s%s", rootdir, path);
1141 * rootdir root directory of the target environment
1151 is_mpxio_disabled(char *rootdir, char *path)
1157 logdmsg(("is_mpxio_disabled: rootdir = %s, path = %s\n",
1158 rootdir, path));
1160 if (file_exists(rootdir, SCSI_VHCI_CONF) == 0) {
1167 if (file_exists(rootdir, "/kernel/drv"))
1175 mpxio_disable = lookup_in_conf_file(rootdir, SCSI_VHCI_CONF, NULL);
1196 if ((mpxio_disable = lookup_in_conf_file(rootdir, FP_CONF, path))
1204 if ((mpxio_disable = lookup_in_conf_file(rootdir, QLC_CONF, path))
1224 mpxio_disable = is_root_controller(rootdir, path);
1424 build_pathlist(char *rootdir, char *vhcipath, char **pathlist, int npaths)
1431 mpxio_disabled = is_mpxio_disabled(rootdir, pathlist[i]);
1472 * rootdir root directory of the target environment
1477 is_dev_in_vfstab(char *rootdir, char *nodepath)
1486 logdmsg(("is_dev_in_vfstab: rootdir = %s, nodepath = %s\n",
1487 rootdir, nodepath));
1489 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, VFSTAB);
1502 rootdir, vfsent.vfs_special);
1613 * rootdir root directory of the target environment
1622 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz)
1632 logdmsg(("get_target_devlink: rootdir = %s, physpath = %s\n",
1633 rootdir, physpath));
1639 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/rdsk", rootdir);
1641 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/dsk", rootdir);
1663 devname + strlen(rootdir)));
1664 return (strlcpy(buf, devname + strlen(rootdir),
1677 * rootdir root directory
1678 * devname a /dev name or /devices name under rootdir
1686 devname2physpath(char *rootdir, char *devname, char *physpath, int physpathlen)
1693 logdmsg(("devname2physpath: rootdir = %s, devname = %s\n",
1694 rootdir, devname));
1698 if (*rootdir == '\0')
1702 rootdir, devname);
1724 * rootdir root directory of the target environment
1733 devfs_target2install(const char *rootdir, const char *devname, char *buf,
1738 logdmsg(("devfs_target2install: rootdir = %s, devname = %s\n",
1739 STRVAL(rootdir), STRVAL(devname)));
1741 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0)
1744 if (strcmp(rootdir, "/") == 0)
1745 rootdir = "";
1747 if (devname2physpath((char *)rootdir, (char *)devname, physpath,
1785 * rootdir root directory of the target environment
1794 devfs_install2target(const char *rootdir, const char *devname, char *buf,
1799 logdmsg(("devfs_install2target: rootdir = %s, devname = %s\n",
1800 STRVAL(rootdir), STRVAL(devname)));
1802 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0)
1805 if (strcmp(rootdir, "/") == 0)
1806 rootdir = "";
1828 if ((npaths = build_pathlist((char *)rootdir, physpath,
1841 if (is_dev_in_vfstab((char *)rootdir,
1858 return (get_target_devlink((char *)rootdir, physpath, buf, bufsz));