[Yaffs-archive] YAFFS update

Charles Manning manningc2@actrix.gen.nz
Fri, 23 Aug 2002 13:11:29 +1200


Hi YAFFsers

Been a big week for YAFFS.  

Administration
~~~~~~~~~~~
* Nick Bane, who graciously hosts this list, now runs the list server 24 
hours per day. This improves turnaround for those of us on the dark side of 
the planet. Thanx Nick.

* Please remember to put YAFFS in the subject line of YAFFS mails. This helps 
ensuring that messages get due attention.

* I think Wookey is still on holiday (vacation) - probably down a hole. When 
he gets back he can set up CVS access for those that need it. In the mean 
time you can send me patches and I will work them in. I'd like to have a say 
in patches going into yaffs_guts (as I am doing some stuff there). Other 
files are fair game.

The code
~~~~~~~~
Thanx to all, particularly Luc.

I have just checked in:
* yaffs_fs.c
-- Added Luc's patch to update cache page.
-- Fixed  the second delete problem.

*Makefile
-- Changed some config names to CONFIG_YAFFS_xxx format.


There are three issues I will be working on over the weekend.

* yaffs_fs.c: Locking. YAFFS does not currently do any locking.  I intend to 
just implement gross locking for now (ie. lock the whole of yaffs_guts). This 
is what I do in the WinCE stuff and seems OK for now. Can always get clever 
later. Given that YAFFS only waits on the NAND (which does not support 
multi-access like NOR devices do (by using erase-suspend)), I don't believe 
gross locking gains much, but it does keep things simple. About the only time 
I can think that a yaffs_guts call will take a long time is deleting a large 
file. I intend to speed this up in the future anyway.

* yaffs_guts.c: File truncation if power is lost (as identified by 
Christian). This is caused by the scanner using the file size in the 
ObjectHeader. Instead it should determine the file size from the data chunks 
as they are scanned.

* yaffs_guts.c: Robustification: Generally handling write disturbs better. 
Not that what's there now is too shabby.

Enjoy

-- 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.