]> git.wh0rd.org - dump.git/blob - compat/include/bylabel.h
Fix restore when symtab file is over 2GB in size.
[dump.git] / compat / include / bylabel.h
1 /*
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
13 *
14 * $Id: bylabel.h,v 1.6 2004/07/05 15:02:36 stelian Exp $
15 */
16
17 #ifndef _BYLABEL_H_
18 #define _BYLABEL_H_
19
20 #include <config.h>
21
22 #ifdef HAVE_BLKID
23
24 #include <blkid/blkid.h>
25
26 static inline const char * get_device_name(const char * item) {
27 return blkid_get_devname(NULL, item, NULL);
28 }
29
30 static inline const char * get_device_label(const char * spec) {
31 return blkid_get_tag_value(NULL, "LABEL", spec);
32 }
33
34 #else
35
36 const char * get_device_name(const char * item);
37 const char * get_device_label(const char * spec);
38
39 #endif
40
41 #endif /* !_BYLABEL_H_ */