Lines Matching refs:rootdir
728 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()
1048 is_root_controller(char *rootdir, char *path) in is_root_controller() argument
1057 logdmsg(("is_root_controller: rootdir = %s, path = %s\n", rootdir, in is_root_controller()
1060 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, VFSTAB); in is_root_controller()
1079 if (compare_controller(rootdir, vfsent.vfs_special, path) == 0) in is_root_controller()
1105 if (compare_controller(rootdir, buf, path) == 0) { in is_root_controller()
1122 file_exists(char *rootdir, char *path) in file_exists() argument
1128 (void) snprintf(fullpath, MAXPATHLEN, "%s%s", rootdir, path); in file_exists()
1152 is_mpxio_disabled(char *rootdir, char *path) in is_mpxio_disabled() argument
1159 rootdir, path)); in is_mpxio_disabled()
1161 if (file_exists(rootdir, SCSI_VHCI_CONF) == 0) { in is_mpxio_disabled()
1168 if (file_exists(rootdir, "/kernel/drv")) in is_mpxio_disabled()
1176 mpxio_disable = lookup_in_conf_file(rootdir, SCSI_VHCI_CONF, NULL); in is_mpxio_disabled()
1197 if ((mpxio_disable = lookup_in_conf_file(rootdir, FP_CONF, path)) in is_mpxio_disabled()
1205 if ((mpxio_disable = lookup_in_conf_file(rootdir, QLC_CONF, path)) in is_mpxio_disabled()
1225 mpxio_disable = is_root_controller(rootdir, path); in is_mpxio_disabled()
1425 build_pathlist(char *rootdir, char *vhcipath, char **pathlist, int npaths) in build_pathlist() argument
1432 mpxio_disabled = is_mpxio_disabled(rootdir, pathlist[i]); in build_pathlist()
1478 is_dev_in_vfstab(char *rootdir, char *nodepath) in is_dev_in_vfstab() argument
1488 rootdir, nodepath)); in is_dev_in_vfstab()
1490 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, VFSTAB); in is_dev_in_vfstab()
1503 rootdir, vfsent.vfs_special); in is_dev_in_vfstab()
1623 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz) in get_target_devlink() argument
1634 rootdir, physpath)); in get_target_devlink()
1640 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/rdsk", rootdir); in get_target_devlink()
1642 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/dsk", rootdir); in get_target_devlink()
1664 devname + strlen(rootdir))); in get_target_devlink()
1665 return (strlcpy(buf, devname + strlen(rootdir), in get_target_devlink()
1687 devname2physpath(char *rootdir, char *devname, char *physpath, int physpathlen) in devname2physpath() argument
1695 rootdir, devname)); in devname2physpath()
1699 if (*rootdir == '\0') in devname2physpath()
1703 rootdir, devname); in devname2physpath()
1734 devfs_target2install(const char *rootdir, const char *devname, char *buf, in devfs_target2install() argument
1740 STRVAL(rootdir), STRVAL(devname))); in devfs_target2install()
1742 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0) in devfs_target2install()
1745 if (strcmp(rootdir, "/") == 0) in devfs_target2install()
1746 rootdir = ""; in devfs_target2install()
1748 if (devname2physpath((char *)rootdir, (char *)devname, physpath, in devfs_target2install()
1795 devfs_install2target(const char *rootdir, const char *devname, char *buf, in devfs_install2target() argument
1801 STRVAL(rootdir), STRVAL(devname))); in devfs_install2target()
1803 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0) in devfs_install2target()
1806 if (strcmp(rootdir, "/") == 0) in devfs_install2target()
1807 rootdir = ""; in devfs_install2target()
1829 if ((npaths = build_pathlist((char *)rootdir, physpath, in devfs_install2target()
1842 if (is_dev_in_vfstab((char *)rootdir, in devfs_install2target()
1859 return (get_target_devlink((char *)rootdir, physpath, buf, bufsz)); in devfs_install2target()