diff options
-rw-r--r-- | util-linux/volume_id/get_devname.c | 11 |
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 e99c15b02..d82808fa2 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c | |||
@@ -107,6 +107,17 @@ uuidcache_init(void) | |||
107 | if (uuidCache) | 107 | if (uuidCache) |
108 | return; | 108 | return; |
109 | 109 | ||
110 | /* We were scanning /proc/partitions | ||
111 | * and /proc/sys/dev/cdrom/info here. | ||
112 | * Missed volume managers. I see that "standard" blkid uses these: | ||
113 | * /dev/mapper/control | ||
114 | * /proc/devices | ||
115 | * /proc/evms/volumes | ||
116 | * /proc/lvm/VGs | ||
117 | * This is unacceptably complex. Let's just scan /dev. | ||
118 | * (Maybe add scanning of /sys/block/XXX/dev for devices | ||
119 | * somehow not having their /dev/XXX entries created?) */ | ||
120 | |||
110 | recursive_action("/dev", ACTION_RECURSE, | 121 | recursive_action("/dev", ACTION_RECURSE, |
111 | uuidcache_check_device, /* file_action */ | 122 | uuidcache_check_device, /* file_action */ |
112 | NULL, /* dir_action */ | 123 | NULL, /* dir_action */ |