]>
git.wh0rd.org - dump.git/blob - compat/include/bylabel.h
2 * Ported to Linux's Second Extended File System as part of the
3 * dump and restore backup suit
4 * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
5 * - added Native Language Support
6 * 2000-01-20 James Antill <james@and.org>
7 * - Added error message if /proc/partitions cannot be opened
8 * 2000-05-09 Erik Troan <ewt@redhat.com>
9 * - Added cache for UUID and disk labels
10 * Wed Aug 16 2000 Erik Troan <ewt@redhat.com>
11 * - Ported to dump/restore
12 * Stelian Pop <stelian@popies.net> - Alcôve <www.alcove.com>, 2000-2002
14 * $Id: bylabel.h,v 1.6 2004/07/05 15:02:36 stelian Exp $
24 #include <blkid/blkid.h>
26 static inline const char * get_device_name(const char * item
) {
27 return blkid_get_devname(NULL
, item
, NULL
);
30 static inline const char * get_device_label(const char * spec
) {
31 return blkid_get_tag_value(NULL
, "LABEL", spec
);
36 const char * get_device_name(const char * item
);
37 const char * get_device_label(const char * spec
);
41 #endif /* !_BYLABEL_H_ */