From 0a44d7d823c87edb8b0d28409559da5e93b3e922 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Sat, 22 Mar 2008 01:33:29 -0400 Subject: [PATCH] add a kludge to avoid detecting vfat on a whole disk as a partition table 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/part-id.c b/src/part-id.c index 2de35e6..6f71d44 100644 --- a/src/part-id.c +++ b/src/part-id.c @@ -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); } -- 2.7.4