[Yaffs] yaffs_guts.c possible coding error in yaffs_WriteDat…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Cal Page
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] yaffs_guts.c possible coding error in yaffs_WriteDataToFile ???
If you look in yaffs_WriteDataToFile where

nBytesRead = in->variant.fileVariant.fileSize -
(chunk-1)*dev->nDataBytesPerChunk

shouldn't chunk be -2 instead?

If I do that, the lengths get calculated properly, and the data is
written properly to the disk.

Leaving it at -1 means that the +verify-all check fails on the first
file write to the nand.

Cal Page