From 878eb8b7626a6a31287e2051412b4a2019b4dff5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 13 May 2004 14:00:21 +0000 Subject: usb cdrom has a weird size in /proc/partitions, the result is that it is detected as floppy --- mdk-stage1/probing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 515ba81f5..0a18f0233 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -569,7 +569,7 @@ static void find_media(enum media_bus bus) int major, minor, blocks; memset(name, 0, sizeof(name)); sscanf(buf, " %d %d %d %s", &major, &minor, &blocks, name); - if (streq(name, tmp_name) && ((blocks == 1048575) || (blocks == 1440))) + if (streq(name, tmp_name) && tmp[count].type == DISK && ((blocks == 1048575) || (blocks == 1440))) tmp[count].type = FLOPPY; } fclose(f); -- cgit v1.2.1