* supposed to do this, but (a) it doesn't work and (b) that option
* is not supported in RHEL 5.
*/
- unlink ("/etc/blkid/blkid.tab");
+ unlink ("/etc/blkid/blkid.tab"); /* Red Hat, Fedora */
+ unlink ("/etc/blkid.tab"); /* Debian */
r = command (&out, &err,
"blkid", "-o", "value", "-s", tag, device, NULL);
{
return get_blkid_tag (device, "TYPE");
}
+
+char *
+do_vfs_label (const char *device)
+{
+ return get_blkid_tag (device, "LABEL");
+}
+
+char *
+do_vfs_uuid (const char *device)
+{
+ return get_blkid_tag (device, "UUID");
+}