[Yaffs-archive] Re: yaffs problem
Charles Manning
manningc2@actrix.gen.nz
Fri, 29 Nov 2002 06:28:51 +1300
> 1)Line 1. That seems odd. Why are you doing that? Please quote the
> commented line in case our linecounts differ.
>
> mkyaffsimage.c:229: structure has no member named `sum'
> make: *** [mkyaffsimage.o] Error 1
> [skumar@embedded_linux utils]$
> not solved:
> line to be commented oh->sum = yaffs_CalcNameSum(oh->name);
>
> You are quite right. I haven't rebuilt mkyaffsimage in quite a while. The
> sum header item has been removed. This means the CalcNameSum function I
> added can also go (Charles?).
>
The reason for this was that the sum and name were both being stored in the
object header (on NAND). This meant that if these got out of step with
eachother, for whatever reason, it would no longer be possible to find the
file. Instead yaffs now calculates the sum from the name at scan time, so
they can no longer get out of step. I kept the field in the ObjectHeader, but
renamed it sum_noLongerUsed. Thus, old mkyaffsimage is still binary
compatable with the changed scanning system.
I have fixed and updated this in cvs.
Thanx to Sharath for pointing this out.
-- CHarles
---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe"
(without the quotes) as the subject.