[parted-devel] [PATCH] Exclude floppy from device scan

Phillip Susi phillsusi at gmail.com
Wed Jan 4 19:15:12 UTC 2012


Floppies can't be partitioned anyhow, and some people have
misconfigured bios that thinks there is a floppy when there
actually isn't, and trying to scan it causes hanging.
---
 libparted/arch/linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 6693cd7..07fc97c 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -2125,6 +2125,7 @@ _skip_entry (const char *name)
 		{ "dm-",	sizeof ("dm-") - 1	},
 		{ "loop",	sizeof ("loop") - 1	},
 		{ "ram",	sizeof ("ram") - 1	},
+		{ "fd",		sizeof ("fd") - 1	},
 		{ 0, 0 },
 	};
 
-- 
1.7.5.4




More information about the parted-devel mailing list