Lines Matching defs:path
540 /* Make sure we have a device path. */
561 " %s to physical path.\n"
589 " %s to physical path.\n"
641 /* on_line path */
801 /* We are passing the disks path */
876 * enclosure. Its being taken care later in the code path
1001 cleanup_dotdot_path(char *path)
1008 dotdot = strstr(path, "/../");
1021 if (dotdot == path) {
1022 strcpy(holder, &path[3]); /* strip "/.." */
1023 strcpy(path, holder);
1034 previous_slash = strrchr(path, '/');
1037 * hmm, somethings wrong. path looks something
1043 * Now truncate the path just after the previous '/'
1047 (void) strcat(path, dotdot+4);
1059 * For S10 the physical path may be non-existent.
1061 * NOTE: If the path is relative, it will be forced into
1062 * an absolute path by pre-pending the pwd to it.
1065 h_get_physical_name_from_link(char *path)
1074 /* return NULL if path is NULL */
1075 if (path == NULL) {
1079 strcpy(source, path);
1083 * First make sure the path is absolute. If not, make it.
1084 * If it's already an absolute path, we have no need
1109 * Clean up any "../"s that are in the path
1114 * source is now an absolute path to the link we're
1161 O_DPRINTF("Internal error... corrupt path.\n");
1164 /* Now strip off just the directory path */
1184 * For S10 the physical path may not exist at the time devctl calls
1185 * are made. So we should not return error if stat fails on /devices path.
1191 * The physical path they are linked to is returned.
1198 h_get_physical_name(char *path)
1206 /* return invalid path if path NULL */
1207 if (path == NULL) {
1211 (void) strcpy(s, path);
1219 /* Make sure a full path as that is required. */
1246 result = h_get_physical_name_from_link(path);
1291 "phys path = \"%s\"\n"),
1347 printf(MSGSTR(5519, "phys path = \"%s\"\n"), path_phys);
1390 /* on_line path */
1419 " the path \"%s\": %s\n"),
2531 char link[MAXPATHLEN], path[MAXPATHLEN];
2566 (void) strcpy(path, dlist->dev_path);
2567 ptr = strrchr(path, ':');
2570 if (strstr(link, path)) {
2720 char link[MAXPATHLEN], path[MAXPATHLEN];
2746 (void) strcpy(path, dl->dev_path);
2747 d1 = strrchr(path, ':');
2750 if (strstr(link, path)) {