Bug#329588: kfloppy: Unexpected density number 0 w/ udev
Package: kfloppy
Version: 4:3.4.2-3ejs1
Severity: important
Tags: patch
When trying to format a floppy on a udev enabled system, I receive the
error "Unexpected density number 0" just above the progress bar when
selecting the "Auto-Detect" option.
Apparently this option should allow formatting to occur, per upstream at
http://bugs.kde.org/show_bug.cgi?id=94392. For me this is not the case.
Attached is a forward ported patch from 3.3.2. It does not resolve the
'Auto-Detect' problem, but it does allow floppies to be formatted with
the '3.5' selection.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (650, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-rc2-1-p4
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages kfloppy depends on:
ii dosfstools 2.11-2.1 Utilities to create and check MS-D
ii kdelibs4c2 4:3.4.2-4 core libraries for all KDE applica
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.1-8 GCC support library
ii libqt3-mt 3:3.3.5-1 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.0.1-8 The GNU Standard C++ Library v3
kfloppy recommends no packages.
-- no debconf information
diff -ur kdeutils-3.4.2.orig/kfloppy/format.cpp kdeutils-3.4.2/kfloppy/format.cpp
--- kdeutils-3.4.2.orig/kfloppy/format.cpp 2005-05-23 08:09:09.000000000 -0400
+++ kdeutils-3.4.2/kfloppy/format.cpp 2005-09-22 02:49:25.000000000 -0400
@@ -166,15 +166,14 @@
//
#ifdef ANY_LINUX
-const char *fd0H1440[] = { "/dev/fd0u1440", "/dev/floppy/0u1440", "/dev/fd0h1440", "/dev/fd0H1440", 0L } ;
-const char *fd0D720[] = { "/dev/fd0u720", "/dev/floppy/0u720", "/dev/fd0D720", "/dev/fd0h720", 0L };
-const char *fd0h1200[] = { "/dev/fd0h1200", "/dev/floppy/0h1200", 0L };
-const char *fd0h360[] = { "/dev/fd0u360", "/dev/floppy/0u360", "/dev/fd0h360", "/dev/fd0d360", 0L };
-
-const char *fd1H1440[] = { "/dev/fd1u1440", "/dev/floppy/1u1440","/dev/fd1h1440", "/dev/fd1H1440", 0L } ;
-const char *fd1D720[] = { "/dev/fd1u720", "/dev/floppy/1u720", "/dev/fd1D720", "/dev/fd1h720", 0L };
-const char *fd1h1200[] = { "/dev/fd1h1200", "/dev/floppy/1h1200", 0L };
-const char *fd1h360[] = { "/dev/fd1u360", "/dev/floppy/1u360","/dev/fd1h360", "/dev/fd1d360", 0L };
+const char *fd0H1440[] = { "/dev/fd0h1440", "/dev/fd0H1440", "/dev/fd0u1440", "/dev/fd0", 0L } ;
+const char *fd0D720[]={ "/dev/fd0u720", "/dev/fd0D720", "/dev/fd0", 0L };
+const char *fd0h1200[]={ "/dev/fd0h1200", "/dev/fd0", 0L };
+const char *fd0h360[]={ "/dev/fd0h360", "/dev/fd0", 0L };
+const char *fd1H1440[] = { "/dev/fd1h1440", "/dev/fd1H1440", "/dev/fd0u1440", "/dev/fd1", 0L } ;
+const char *fd1D720[]={ "/dev/fd0u720", "/dev/fd1D720", "/dev/fd1", 0L };
+const char *fd1h1200[]={ "/dev/fd1h1200", "/dev/fd1", 0L };
+const char *fd1h360[]={ "/dev/fd1h360", "/dev/fd1", 0L };
const char *fd0auto[] = { "/dev/fd0", 0L };
const char *fd1auto[] = { "/dev/fd1", 0L };
Reply to: