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

Phillip Susi phillsusi at gmail.com
Wed Jan 4 19:40:13 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.
---
 NEWS                   |    3 +++
 libparted/arch/linux.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/NEWS b/NEWS
index d85667a..7bcee96 100644
--- a/NEWS
+++ b/NEWS
@@ -43,6 +43,9 @@ GNU parted NEWS                                    -*- outline -*-
   informs kernel about new partitions on partitionable MD RAID devices.
 
 ** Changes in behavior
+  Floppy drives will no longer be scanned on linux, as they can not be
+  partitioned anyhow, and some users have misconfigured bios that claims
+  to have a floppy when they don't, and scanning gets hung up.
 
   parted: mkpart command has changed semantics with regard to specifying end
   of the partition. If the end is specified using MiB, GiB, etc. unit, parted
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