mtd/fs/jffs2 scan.c,1.72,1.73
David Woodhouse
dwmw2 at infradead.org
Thu Mar 28 04:58:13 EST 2002
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv4637
Modified Files:
scan.c
Log Message:
Don't whinge about seeing padding nodes.
Index: scan.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/scan.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- scan.c 27 Mar 2002 09:53:12 -0000 1.72
+++ scan.c 28 Mar 2002 09:58:11 -0000 1.73
@@ -381,6 +381,11 @@
ofs += PAD(sizeof(struct jffs2_unknown_node));
break;
+ case JFFS2_NODETYPE_PADDING:
+ DIRTY_SPACE(PAD(node.totlen));
+ ofs += PAD(node.totlen);
+ break;
+
default:
switch (node.nodetype & JFFS2_COMPAT_MASK) {
case JFFS2_FEATURE_ROCOMPAT:
@@ -390,7 +395,7 @@
return -EROFS;
DIRTY_SPACE(PAD(node.totlen));
ofs += PAD(node.totlen);
- continue;
+ break;
case JFFS2_FEATURE_INCOMPAT:
printk(KERN_NOTICE "Incompatible feature node (0x%04x) found at offset 0x%08x\n", node.nodetype, ofs);
More information about the linux-mtd-cvs
mailing list