We've just found that rmdir is not returning ENOTENT when asked to
delete a directory containign files.
This is with kernel 2.6.29.1 on debian armel on a balloon3. (We
noticed because fontconfig's posinst script removes old-format cache
files and then uses find and rmdir to remove all the dirs that are now
empty. On our system it merrily removes all your fonts.
strace shows that rmdir 'test' just does it, whereas on a normal
machine it return ENOTENT.
This is with yaffs_fs 1.76, yaffs_guts 1.81, as of 2009-03-06. I'll
check if 'latest' helps at all, but clues as to what might be wrong
are most welcome.
The code round yaffs_unlink and yaffs_Unlink all looks like it does
the right thing, but it's clearly going wrong in some way.
It works OK on a 2.4 kernel machine with correspondingly ancient
version of yaffs we have handy to test.
Wookey
--
Principal hats: iEndian - Balloonboard - Toby Churchill - Emdebian
http://wookware.org/