add a kludge to avoid detecting vfat on a whole disk as a partition table
authorDavid Zeuthen <davidz@redhat.com>
Sat, 22 Mar 2008 05:33:29 +0000 (01:33 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sat, 22 Mar 2008 05:33:29 +0000 (01:33 -0400)
I don't really know how to make a distinction between a MBR and a
VBR. Both have the MSDOS magic at 0x1fe.

src/part-id.c

index 2de35e6..6f71d44 100644 (file)
@@ -300,7 +300,9 @@ main (int argc, char *argv[])
 
         fd = open_device (device_file);
         if (fd >= 0) {
-                do_table (fd);
+                if (getenv ("ID_FS_USAGE") == NULL) {
+                        do_table (fd);
+                }
                 close (fd);
         }