Signed-off-by: Karel Zak <kzak@redhat.com>
{
.name = "gpt",
.probefunc = probe_gpt_pt,
+ .minsz = 1024 * 1440 + 1, /* ignore floppies */
/*
* It would be possible to check for DOS signature (0xAA55), but
int hasmag = 0;
int rc = 1; /* = nothing detected */
+ if (id->minsz && id->minsz > pr->size)
+ goto nothing; /* the device is too small */
+
mag = id->magics ? &id->magics[0] : NULL;
/* try to detect by magic string */
{
.name = "unixware",
.probefunc = probe_unixware_pt,
+ .minsz = 1024 * 1440 + 1, /* ignore floppies */
.magics =
{
{