From 4b2e840c115ac574ed1b5df7039ebcad78090e31 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 30 Sep 2020 13:11:01 +0200 Subject: [PATCH] libblkid: (gpt) accept tiny devices GPT prober reads 2 first sectors. There is no overhead as we already read begin of the device for another filesystems (like FAT) and we have these sectors already in memory. Addresses: https://github.com/karelzak/util-linux/issues/1147 Signed-off-by: Karel Zak --- libblkid/src/partitions/gpt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c index 889ff772ca..af6257ab7f 100644 --- a/libblkid/src/partitions/gpt.c +++ b/libblkid/src/partitions/gpt.c @@ -423,7 +423,6 @@ const struct blkid_idinfo gpt_pt_idinfo = { .name = "gpt", .probefunc = probe_gpt_pt, - .minsz = 1024 * 1440 + 1, /* ignore floppies */ /* * It would be possible to check for DOS signature (0xAA55), but -- 2.47.2