]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: add blkid_evaluate_spec()
authorKarel Zak <kzak@redhat.com>
Thu, 17 Mar 2011 11:51:06 +0000 (12:51 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Mar 2011 11:51:06 +0000 (12:51 +0100)
commit5298f72839cb44e2ae9d4407375674ba50f9b1c0
treeec266edf30588e50a522cf8a098d9af1d02d2edb
parent70cc35de731d70a725a60ec67771e6ea7c163b25
libblkid: add blkid_evaluate_spec()

The function blkid_evaluate_tag() is useful for tags only (e.g.
LABEL=foo). But we also need to address devices by tags OR paths in
many utils.

The function blkid_evaluate_spec() support this functionality without
extra care about the way how device is addressed. The tags as well as
paths are converted to the standardized device path.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/fsprobe.c
shlibs/blkid/src/blkid.h.in
shlibs/blkid/src/blkid.sym
shlibs/blkid/src/evaluate.c