OSDN Git Service

libparted: linux: exclude floppy from device scan
authorPhillip Susi <phillsusi@gmail.com>
Wed, 4 Jan 2012 19:40:13 +0000 (14:40 -0500)
committerJim Meyering <meyering@redhat.com>
Wed, 4 Jan 2012 19:45:59 +0000 (20:45 +0100)
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.

NEWS
libparted/arch/linux.c

diff --git a/NEWS b/NEWS
index d85667a..58a5f89 100644 (file)
--- 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
index 6693cd7..07fc97c 100644 (file)
@@ -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 },
        };