/* * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * 1999-02-22 Arkadiusz Miśkiewicz * - added Native Language Support * 2000-01-20 James Antill * - Added error message if /proc/partitions cannot be opened * 2000-05-09 Erik Troan * - Added cache for UUID and disk labels * Wed Aug 16 2000 Erik Troan * - Ported to dump/restore * Stelian Pop - Alcôve , 2000-2002 */ #ifndef _BYLABEL_H_ #define _BYLABEL_H_ #include "config.h" // IWYU pragma: keep #ifdef HAVE_BLKID #include #include inline const char * get_device_name(const char * item) { return blkid_get_devname(NULL, item, NULL); } inline const char * get_device_label(const char * spec) { return blkid_get_tag_value(NULL, "LABEL", spec); } #else const char * get_device_name(const char * item); const char * get_device_label(const char * spec); #endif #endif /* !_BYLABEL_H_ */