libfdisk: (dos) don't ignore MBR+FAT use-case

Since libblkid commit 751eca28fc 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 <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-07-27 11:10:53 +02:00
parent b5a4d57a5c
commit 6e8af4695e
1 changed files with 0 additions and 6 deletions

View File

@ -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);