mtd/util docfdisk.c,1.1,1.2
dbrown at infradead.org
dbrown at infradead.org
Wed Jul 28 08:37:52 EDT 2004
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv28965
Modified Files:
docfdisk.c
Log Message:
Keep going on ECC error during mediaheader scan.
Index: docfdisk.c
===================================================================
RCS file: /home/cvs/mtd/util/docfdisk.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- docfdisk.c 13 Jul 2004 17:49:43 -0000 1.1
+++ docfdisk.c 28 Jul 2004 12:37:49 -0000 1.2
@@ -220,7 +220,8 @@
for (mhblock = 0; mhblock < MAXSCAN; mhblock++) {
if ((ret = pread(fd, buf, meminfo.erasesize, mhblock * meminfo.erasesize)) < 0) {
perror("Read eraseblock");
- return 1;
+ if (ret != -EBADMSG)
+ return 1;
}
if (ret != meminfo.erasesize) {
printf("Short read!\n");
More information about the linux-mtd-cvs
mailing list