Lines Matching defs:path
789 * lookup mpxio-disabled property setting for the given path in the given
792 * conf_file the path name of either fp.conf, qlc.conf or scsi_vhci.conf
793 * path /devices node path without the /devices prefix.
794 * If the conf_file is fp.conf, path must be a fp node path
795 * if the conf_file is qlc.conf, path must be a qlc node path.
796 * if the conf_file is scsi_vhci.conf, path must be NULL.
806 lookup_in_conf_file(char *rootdir, char *conf_file, char *path)
821 "path = \"%s\"\n", rootdir, conf_file, STRVAL(path)));
829 /* if path is NULL, return driver global mpxio-disable setting */
830 if (path == NULL) {
835 if ((node_name = strrchr(path, '/')) == NULL)
855 * first, start the lookup based on full path.
857 if ((rv = lookup_in_confent_list(confent_list, 0, path,
862 if ((par_node_name_addr = strrchr(path, '/')) != NULL) {
870 par_node = di_init(path, DINFOMINOR);
1037 * Check if the specified device path is on the root controller.
1040 * path /devices name of a device without the /devices prefix
1043 * 1 if the path is on the root controller
1044 * 0 if the path is not on the root controller
1048 is_root_controller(char *rootdir, char *path)
1057 logdmsg(("is_root_controller: rootdir = %s, path = %s\n", rootdir,
1058 path));
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);
1139 * Check if mpxio is enabled or disabled on the specified device path.
1143 * path /devices name of a device without the /devices prefix and
1152 is_mpxio_disabled(char *rootdir, char *path)
1158 logdmsg(("is_mpxio_disabled: rootdir = %s, path = %s\n",
1159 rootdir, path));
1197 if ((mpxio_disable = lookup_in_conf_file(rootdir, FP_CONF, path))
1201 if ((p = strrchr(path, '/')) == NULL)
1205 if ((mpxio_disable = lookup_in_conf_file(rootdir, QLC_CONF, path))
1214 * The default is to enable mpxio, except if the path is on the root
1225 mpxio_disable = is_root_controller(rootdir, path);
1334 * returned path list.
1336 * Returns NULL terminated path list containing phci client paths is
1337 * returned on success. The memory for the path list is
1368 /* now allocate memory for the path information and get all paths */
1434 "on path %s\n", mpxio_disabled, pathlist[i]));
1439 * mpxio is enabled on this phci path.
1440 * So use vhci path instead of phci path.
1446 /* keep vhci path at beginning of the list */
1474 * nodepath /devices path of a device in the target environment without
1497 * node path level.
1553 * physpath /devices path in the install environment without the /devices
1615 * physpath /devices path in the target environment without the /devices
1680 * physpath caller supplied buffer where the /devices path will be placed
1836 * in case of more than one path, try to use the path
1837 * referenced in the vfstab file, otherwise use the first path.
1974 * by calling the provided callback with the path to each minor.
2034 * Return the path to each minor node for a device by