summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak2010-02-01 14:23:55 +0100
committerKarel Zak2010-02-01 14:23:55 +0100
commit49361dc4dca0a9079ee57a2a0d8833aabd93277b (patch)
tree064f47d2ba6e11ec9bf3b763726b8f07d97d70cd /include/pathnames.h
parentlibblkid: add blkid_openat(), cleanup blkid_fstatat() (diff)
downloadkernel-qcow2-util-linux-49361dc4dca0a9079ee57a2a0d8833aabd93277b.tar.gz
kernel-qcow2-util-linux-49361dc4dca0a9079ee57a2a0d8833aabd93277b.tar.xz
kernel-qcow2-util-linux-49361dc4dca0a9079ee57a2a0d8833aabd93277b.zip
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>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r--include/pathnames.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index efe5c3bc8..9c4eb009b 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -76,6 +76,8 @@
#define _PATH_PROC_PARTITIONS "/proc/partitions"
#define _PATH_PROC_DEVICES "/proc/devices"
+#define _PATH_SYS_BLOCK "/sys/block"
+
#ifndef _PATH_MOUNTED
# ifdef MOUNTED /* deprecated */
# define _PATH_MOUNTED MOUNTED