mtd/util mkfs.jffs2.c,1.38,1.39
David Woodhouse
dwmw2 at infradead.org
Fri Sep 12 05:09:39 EDT 2003
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv31584
Modified Files:
mkfs.jffs2.c
Log Message:
Observe block-boundary rules even when writing out zero-size files.
Index: mkfs.jffs2.c
===================================================================
RCS file: /home/cvs/mtd/util/mkfs.jffs2.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- mkfs.jffs2.c 8 May 2003 07:35:28 -0000 1.38
+++ mkfs.jffs2.c 12 Sep 2003 09:09:37 -0000 1.39
@@ -896,6 +896,8 @@
}
if (!je32_to_cpu(ri.version)) {
/* Was empty file */
+ pad_block_if_less_than(sizeof(ri));
+
ri.version = cpu_to_je32(++ver);
ri.totlen = cpu_to_je32(sizeof(ri));
ri.hdr_crc = cpu_to_je32(crc32(0,
More information about the linux-mtd-cvs
mailing list