Package: mtd-tools
Version: 20050122-2

eraseall doesn't work when MEMGETBADBLOCK is not supported. The patch 
below is required. Detected in "testing/etch", but the version is the same 
in all branches. The mtd-utils current version, as well as 1.0.0 is 
correct.

Thanks
Guennadi
---
Guennadi Liakhovetski

--- a/util/flash_eraseall.c     2006-09-09 23:00:51.000000000 +0200
+++ b/util/flash_eraseall.c     2006-09-09 12:02:14.000000000 +0200
@@ -134,7 +134,7 @@
                                if (!quiet)
                                        printf ("\nSkipping bad block at 
0x%08x\n", erase.start);
                                continue;
-                       } else if (ret == -EOPNOTSUPP) {
+                       } else if (errno == EOPNOTSUPP) {
                                fprintf(stderr, "%s: %s: Bad block check not 
available\n", exe_name, mtd_device);
                                bbtest = 0;
                        } else if (ret < 0) {


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to