summaryrefslogtreecommitdiff
path: root/util-linux/volume_id/get_devname.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-10-19 19:54:49 +0000
committerDenis Vlasenko2008-10-19 19:54:49 +0000
commit802a7be54ffcf6e45808d72e2562456bba564028 (patch)
tree010f2fb9085765270dd335650ee3c5ff0cba1f60 /util-linux/volume_id/get_devname.c
parent582dff051459b1394a48dec1f29a29e2442661a0 (diff)
downloadbusybox-802a7be54ffcf6e45808d72e2562456bba564028.zip
busybox-802a7be54ffcf6e45808d72e2562456bba564028.tar.gz
add comment explaining previous change
Diffstat (limited to 'util-linux/volume_id/get_devname.c')
-rw-r--r--util-linux/volume_id/get_devname.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c
index e99c15b..d82808f 100644
--- a/util-linux/volume_id/get_devname.c
+++ b/util-linux/volume_id/get_devname.c
@@ -107,6 +107,17 @@ uuidcache_init(void)
if (uuidCache)
return;
+ /* We were scanning /proc/partitions
+ * and /proc/sys/dev/cdrom/info here.
+ * Missed volume managers. I see that "standard" blkid uses these:
+ * /dev/mapper/control
+ * /proc/devices
+ * /proc/evms/volumes
+ * /proc/lvm/VGs
+ * This is unacceptably complex. Let's just scan /dev.
+ * (Maybe add scanning of /sys/block/XXX/dev for devices
+ * somehow not having their /dev/XXX entries created?) */
+
recursive_action("/dev", ACTION_RECURSE,
uuidcache_check_device, /* file_action */
NULL, /* dir_action */