mtd/fs/jffs2 wbuf.c,1.47,1.48
David Woodhouse
dwmw2 at infradead.org
Fri Oct 3 14:21:06 EDT 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv5656
Modified Files:
wbuf.c
Log Message:
Separate BREAKME, which should cause recovery to trigger but no data loss,
from BREAKMEHARDER, which will fuck you over.
Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- wbuf.c 3 Oct 2003 18:14:17 -0000 1.47
+++ wbuf.c 3 Oct 2003 18:21:04 -0000 1.48
@@ -19,7 +19,8 @@
#include "nodelist.h"
/* For testing write failures */
-//#define BREAKME
+#undef BREAKME
+#undef BREAKMEHEADER
#ifdef BREAKME
static unsigned char *brokenbuf;
@@ -268,7 +269,7 @@
D1(printk(KERN_DEBUG "Write 0x%x bytes at 0x%08x in wbuf recover\n",
towrite, ofs));
-#ifdef BREAKME
+#ifdef BREAKMEHEADER
static int breakme;
if (breakme++ == 20) {
printk(KERN_NOTICE "Faking write error at 0x%08x\n", ofs);
More information about the linux-mtd-cvs
mailing list