mtd/fs/jffs2 wbuf.c,1.58,1.59
David Woodhouse
dwmw2 at infradead.org
Tue Mar 16 11:19:35 EST 2004
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv2104
Modified Files:
wbuf.c
Log Message:
Pad with zero when we pad.
Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- wbuf.c 2 Nov 2003 09:51:10 -0000 1.58
+++ wbuf.c 16 Mar 2004 16:19:33 -0000 1.59
@@ -424,6 +424,9 @@
padnode->nodetype = cpu_to_je16(JFFS2_NODETYPE_PADDING);
padnode->totlen = cpu_to_je32(c->wbuf_pagesize - c->wbuf_len);
padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4));
+ } else {
+ /* Pad with JFFS2_DIRTY_BITMASK */
+ memset(c->wbuf + c->wbuf_len, 0, c->wbuf_pagesize - c->wbuf_len);
}
}
/* else jffs2_flash_writev has actually filled in the rest of the
More information about the linux-mtd-cvs
mailing list