In all of the groveling about in sysfs that blkid must do,
it got a little lost; /sys/dev/block/$NAME/dev doesn't
exist, but /sys/block/$NAME/dev does.
(/sys/dev/block contains only $MAJOR:$MINOR nodes)
Without this, we get no geometry information for partitions,
because it can't find the whole disk.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
Index: util-linux-ng/shlibs/blkid/src/devno.c
===================================================================
--- util-linux-ng.orig/shlibs/blkid/src/devno.c
+++ util-linux-ng/shlibs/blkid/src/devno.c
@@ -301,7 +301,7 @@ int blkid_devno_to_wholedisk(dev_t dev,
FILE *f;
/* read wholedisk devno */
- rc = snprintf(path, sizeof(path), "/sys/dev/block/%s/dev", name);
+ rc = snprintf(path, sizeof(path), "/sys/block/%s/dev", name);
if (rc < 0 || rc + 1 > sizeof(path))
goto err;
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html