diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 16:05:05 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 16:05:05 +0100 |
commit | 74f92e6a3f884b7fe86d2fb2acc114347defb0ae (patch) | |
tree | 97c39697321dd4baacfd3bb97686db855a49930c /fs/jffs2/jffs2_1pass.c | |
parent | 8e7b703a62783f0e88d3a7e4b1dd1c033bc95ec8 (diff) | |
download | u-boot-imx-74f92e6a3f884b7fe86d2fb2acc114347defb0ae.zip u-boot-imx-74f92e6a3f884b7fe86d2fb2acc114347defb0ae.tar.gz u-boot-imx-74f92e6a3f884b7fe86d2fb2acc114347defb0ae.tar.bz2 |
Add crc of data to jffs2 (in jffs2_1pass_build_lists()).
Patch by Rick Bronson, 15 Jun 2005
Diffstat (limited to 'fs/jffs2/jffs2_1pass.c')
-rw-r--r-- | fs/jffs2/jffs2_1pass.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index 6361d06..49c8652 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -1171,7 +1171,8 @@ jffs2_1pass_build_lists(struct part_info * part) if (node->magic == JFFS2_MAGIC_BITMASK && hdr_crc(node)) { /* if its a fragment add it */ if (node->nodetype == JFFS2_NODETYPE_INODE && - inode_crc((struct jffs2_raw_inode *) node)) { + inode_crc((struct jffs2_raw_inode *) node) && + data_crc((struct jffs2_raw_inode *) node)) { if (insert_node(&pL->frag, (u32) part->offset + offset) == NULL) { put_fl_mem(node); |