[Yaffs-archive] YAFFS partial fix for disk full condition

Charles Manning manningc2@actrix.gen.nz
Wed, 21 Aug 2002 21:00:51 +1200


Hi yaffsers

I have just checked in a fix for the looping when disk full problem. 
Basically, yaffs_fs.c was not reporting back ENOSPC to Linux. Bad, bad...

There is a remaining issue though that you still get funny directory entries 
called /mnt/yaffs/objnnn. These names are created from the objectId on the 
fly by yaffs when it detects a directory entry but can't find an associated 
chunk on NAND to get a real name. Fixing this is a bit more than a 30 minute 
turnaround. I'll put it on the todo.

Thanx to Christian Gan for pointing out the issue.

Sidebar: This is where having both a WinCE and Linux version pays off. Over 
the last few weeks I've been pounding disk full hard on a WinCE box. Since 
yaffs_guts is portable, I had a good hunch therefore that the problem was in 
yaffs_fs.c returning the correct failure code.

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