[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Wed Jan 4 19:47:44 UTC 2012


 NEWS                   |    4 ++++
 libparted/arch/linux.c |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit b56370a71e69c9558a52413686954198ce9c20fd
Author: Phillip Susi <phillsusi at gmail.com>
Date:   Wed Jan 4 14:40:13 2012 -0500

    libparted: linux: exclude floppy from device scan
    
    Floppies can't be partitioned anyhow, and some people have a
    misconfigured BIOS that thinks there is a floppy when there
    actually isn't, and trying to scan it causes hanging.

diff --git a/NEWS b/NEWS
index d85667a..58a5f89 100644
--- a/NEWS
+++ b/NEWS
@@ -44,6 +44,10 @@ GNU parted NEWS                                    -*- outline -*-
 
 ** Changes in behavior
 
+  Floppy drives are no longer scanned on linux: they cannot be partitioned
+  anyhow, and some users have a 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
   subtracts one sector from the specified value. With this change, it is now
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 },
 	};
 



More information about the Parted-commits mailing list