Patch to prevent jffs2 from make changes to other filesystems
Bao C. Ha
baoha at sensoria.com
Tue Oct 23 16:46:17 EDT 2001
I would like to propose the following patch to
temporarily fix the problem of jffs2 making
changes to other filesystems stored on MTD
partitions.
--- scan.c.orig Tue Oct 23 13:35:38 2001
+++ scan.c Tue Oct 23 13:32:28 2001
@@ -214,7 +214,8 @@
noisy_printk(&noise, "jffs2_scan_eraseblock(): Magic
bit
mask 0x%04x not found at 0x%08x: 0x%04x instead\n", JFFS2_MAGIC_BITMASK,
ofs, no
de.magic);
DIRTY_SPACE(4);
ofs += 4;
- continue;
+ /* continue; */
+ return -EINVAL;
}
/* We seem to have a node of sorts. Check the CRC */
nodetype = node.nodetype;
Thanks.
Bao
More information about the linux-mtd
mailing list