]> err.no Git - util-linux/commit
libblkid: add blkid_probe_all_removable()
authorKarel Zak <kzak@redhat.com>
Mon, 1 Feb 2010 13:23:55 +0000 (14:23 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Feb 2010 13:23:55 +0000 (14:23 +0100)
commit49361dc4dca0a9079ee57a2a0d8833aabd93277b
tree064f47d2ba6e11ec9bf3b763726b8f07d97d70cd
parentd96648b822a69e88e9597315a03ccb28bf55267a
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 <kzak@redhat.com>
include/pathnames.h
shlibs/blkid/src/blkid.h.in
shlibs/blkid/src/blkid.sym
shlibs/blkid/src/blkidP.h
shlibs/blkid/src/devname.c
shlibs/blkid/src/save.c