From 49361dc4dca0a9079ee57a2a0d8833aabd93277b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 1 Feb 2010 14:23:55 +0100 Subject: libblkid: add blkid_probe_all_removable() The libblkid probing is based on devices from /proc/partitions by default. This file usually does not contain removable devices (e.g. CDROMs) and this kind of devices are invisible for libblkid. The blkid_probe_all_removable() function adds removable block devices to blkid cache. The probing is based on information from the /sys directory. The devices which were detected by this function won't be written to blkid.tab cache file. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=533874 Signed-off-by: Karel Zak --- shlibs/blkid/src/blkid.sym | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shlibs/blkid/src/blkid.sym') diff --git a/shlibs/blkid/src/blkid.sym b/shlibs/blkid/src/blkid.sym index 972555266..4d01aa201 100644 --- a/shlibs/blkid/src/blkid.sym +++ b/shlibs/blkid/src/blkid.sym @@ -114,3 +114,11 @@ global: blkid_topology_get_optimal_io_size; blkid_topology_get_physical_sector_size; } BLKID_2.15; + +/* + * version(s) since util-linux-ng 2.18 + */ +BLKID_2.18 { +global: + blkid_probe_all_removable; +} BLKID_2.17; -- cgit v1.2.3-55-g7522