[dosfstools] Added dev-detect-fix patch

Jaroslav Škarvada jskarvad at fedoraproject.org
Fri Jun 3 14:50:34 UTC 2011


commit 698a0a088801ea1dbe31b5cc84206d4484ac89e6
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Fri Jun 3 16:49:54 2011 +0200

    Added dev-detect-fix patch

 dosfstools-3.0.9-dev-detect-fix.patch |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/dosfstools-3.0.9-dev-detect-fix.patch b/dosfstools-3.0.9-dev-detect-fix.patch
new file mode 100644
index 0000000..b560af1
--- /dev/null
+++ b/dosfstools-3.0.9-dev-detect-fix.patch
@@ -0,0 +1,18 @@
+diff -up dosfstools-3.0.9/src/mkdosfs.c.old dosfstools-3.0.9/src/mkdosfs.c
+--- dosfstools-3.0.9/src/mkdosfs.c.old	2010-01-31 08:29:13.000000000 +0100
++++ dosfstools-3.0.9/src/mkdosfs.c	2011-06-02 12:02:40.525623995 +0200
+@@ -1763,10 +1763,10 @@ main (int argc, char **argv)
+      * this is a MO disk I introduce a -I (ignore) switch.  -Joey
+      */
+     if (!ignore_full_disk && (
+-	(statbuf.st_rdev & 0xff3f) == 0x0300 || /* hda, hdb */
+-	(statbuf.st_rdev & 0xff0f) == 0x0800 || /* sd */
+-	(statbuf.st_rdev & 0xff3f) == 0x0d00 || /* xd */
+-	(statbuf.st_rdev & 0xff3f) == 0x1600 )  /* hdc, hdd */
++	(statbuf.st_rdev & 0xffffff3f) == 0x0300 || /* hda, hdb */
++	(statbuf.st_rdev & 0xffffff0f) == 0x0800 || /* sd */
++	(statbuf.st_rdev & 0xffffff3f) == 0x0d00 || /* xd */
++	(statbuf.st_rdev & 0xffffff3f) == 0x1600 )  /* hdc, hdd */
+ 	)
+       die ("Device partition expected, not making filesystem on entire device '%s' (use -I to override)");
+ 


More information about the scm-commits mailing list