mtd/util eraseall.c,1.8,1.9

gleixner at infradead.org gleixner at infradead.org
Wed Apr 2 11:58:09 EST 2003


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv512

Modified Files:
	eraseall.c 
Log Message:
fix cleanmarker node length for NAND

Index: eraseall.c
===================================================================
RCS file: /home/cvs/mtd/util/eraseall.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- eraseall.c	18 Feb 2003 09:04:51 -0000	1.8
+++ eraseall.c	2 Apr 2003 16:58:06 -0000	1.9
@@ -114,6 +114,7 @@
 			oob.start = erase.start;
 			oob.start += meminfo.oobsize == 16 ? 8 : 6;
 			oob.length = meminfo.oobsize == 16 ? 8 : 2;
+			cleanmarker.totlen = 8; /* NAND code expects this to be 8 ! */
 			if (ioctl (fd, MEMWRITEOOB, &oob) != 0) {
 				fprintf(stderr, "\n%s: %s: MTD writeoob failure: %s\n", exe_name, mtd_device, strerror(errno));
 				continue;




More information about the linux-mtd-cvs mailing list