Displaying 1 result from an estimated 1 matches for "udevpath".
Did you mean:
devpath
2009 Aug 03
2
[PATCH] New commands to list devices by UUID and label
...]) * 16 + getxdigit (dname[i+3]);
+ i += 3;
+ }
+ else if (i < len-2 && dname[i] == '\\') { /* \\ etc */
+ r[j] = dname[i+1];
+ i++;
+ }
+ else
+ r[j] = dname[i];
+ }
+
+ r[j] = '\0';
+
+ return r;
+}
+
+static char **
+list (const char *udevpath)
+{
+ DIR *dir = NULL;
+ struct dirent *d;
+ char path[PATH_MAX];
+ struct stat statbuf;
+ Hash_table *hash1 = NULL;
+ char **ret = NULL;
+ int size = 0, alloc = 0;
+
+ /* /dev/disk is populated by udev */
+ udev_settle ();
+
+ dir = opendir (udevpath);
+ if (!dir) {
+ /* If there are...