From 6e8af4695e7e37eae392caec9ce42801ecc196de Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 27 Jul 2021 11:10:53 +0200 Subject: [PATCH] libfdisk: (dos) don't ignore MBR+FAT use-case Since libblkid commit 751eca28fcfa1e325770904d7181b22e48c72b29 it does not ignore FAT on whole-disks, so now libfdisk sees collision between FAT and MBR. It's fine to report the collision to users, but we should not ignore the MBR. Signed-off-by: Karel Zak --- libfdisk/src/dos.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index ce545f857..9cd4ba57c 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -834,12 +834,6 @@ static int dos_probe_label(struct fdisk_context *cxt) if (!mbr_is_valid_magic(cxt->firstsector)) return 0; - /* ignore disks with FAT */ - if (cxt->collision && - (strcmp(cxt->collision, "vfat") == 0 || - strcmp(cxt->collision, "ntfs") == 0)) - return 0; - dos_init(cxt); get_partition_table_geometry(cxt, &h, &s);