1
Index: b/lib/device/dev-cache.c
2
===================================================================
3
--- a/lib/device/dev-cache.c
4
+++ b/lib/device/dev-cache.c
9
+ /* Put /dev/block/ names last regardless of path shortness.
10
+ * FIXME It would be better if we could do this in the configuration
11
+ * file, but the only way to do so with preferred_names is to try to
12
+ * enumerate all the possible names we might want to prefer over
14
+ m0 = strncmp(path0, "/dev/block/", 11);
15
+ m1 = strncmp(path1, "/dev/block/", 11);
24
/* Return the path with fewer slashes */
25
for (p = path0; p++; p = (const char *) strchr(p, '/'))