summaryrefslogtreecommitdiff
path: root/mount/fsprobe_blkid.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2007-05-14 14:31:28 +0200
committerKarel Zak <kzak@redhat.com>2007-05-17 12:10:18 +0200
commit65a567e837338052ab0714ee5eab925d74f4a6c1 (patch)
tree454d9a6c8ca8ee7c5ae9a9d4a9085af3f396c8df /mount/fsprobe_blkid.c
parent950f648f8a773359bbec7f30820c9b3159e66e1c (diff)
downloadutil-linux-old-65a567e837338052ab0714ee5eab925d74f4a6c1.tar.gz
mount: fsprobe: make fsprobe_get_devname functions more generic
The blkid supports NAME=value parsing, but use the library for this simple task is overkill. (The libblkid requires initialized blkid cache all time, for all calls.) This patch makes the fsprobe_get_devname_for_mounting() and fsprobe_get_devname() generic for all fsprobe implementations. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/fsprobe_blkid.c')
-rw-r--r--mount/fsprobe_blkid.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/mount/fsprobe_blkid.c b/mount/fsprobe_blkid.c
index d25b9731..2dc734e5 100644
--- a/mount/fsprobe_blkid.c
+++ b/mount/fsprobe_blkid.c
@@ -25,11 +25,6 @@ fsprobe_get_uuid_by_devname(const char *devname) {
}
const char *
-fsprobe_get_devname(const char *spec) {
- return blkid_get_devname(blkid, spec, 0);
-}
-
-const char *
fsprobe_get_devname_by_uuid(const char *uuid) {
return blkid_get_devname(blkid, "UUID", uuid);
}
@@ -39,12 +34,6 @@ fsprobe_get_devname_by_label(const char *label) {
return blkid_get_devname(blkid, "LABEL", label);
}
-/* Also when no UUID= or LABEL= occur? No verbose? No warnings? */
-const char *
-fsprobe_get_devname_for_mounting(const char *spec) {
- return blkid_get_devname(blkid, spec, 0);
-}
-
int
fsprobe_known_fstype(const char *fstype)
{