This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
JFFS2: Problem in fs-ecos.c
- From: eibach at gdsys dot de
- To: ecos-discuss at ecos dot sourceware dot org
- Date: 24 Mar 2004 10:47:01 UT
- Subject: [ECOS] JFFS2: Problem in fs-ecos.c
Hello,
in function jffs2_extend_file I find
ri->totlen = cpu_to_je32(sizeof(ri));
and
ri->node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8));
But ri is only a pointer to a jffs2_raw_inode struct.
So totlen seems to be set incorrect and causes trouble in jffs2_write_dnode.
Am I getting this right? Can it be fixed by replacing sizeof(ri) with sizeof(*ri)?
Regards,
Dirk
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss