+#ifdef HAVE_BLKID
+
+#include <blkid/blkid.h>
+
+static inline const char * get_device_name(const char * item) {
+ return blkid_get_devname(NULL, item, NULL);
+}
+
+static inline const char * get_device_label(const char * spec) {
+ return blkid_get_tag_value(NULL, "LABEL", spec);
+}
+
+#else
+