From: Karel Zak Date: Wed, 30 Sep 2020 11:11:01 +0000 (+0200) Subject: libblkid: (gpt) accept tiny devices X-Git-Tag: v2.37-rc1~455 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b2e840c115ac574ed1b5df7039ebcad78090e31;p=thirdparty%2Futil-linux.git 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 --- 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