]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (gpt) accept tiny devices
authorKarel Zak <kzak@redhat.com>
Wed, 30 Sep 2020 11:11:01 +0000 (13:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Sep 2020 11:11:01 +0000 (13:11 +0200)
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 <kzak@redhat.com>
libblkid/src/partitions/gpt.c

index 889ff772ca1e622b503152e773726317ed0ca2cd..af6257ab7f8fb4f3e99e050156825228797fb4a8 100644 (file)
@@ -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