Hello! I'm running the yaffs2 filesystem on an ARM board, under Linux
2.6.32.10 kernel, using the yaffs2 git snapshot from 2010-03-29. The
"rm" command is from Busybox 1.13.1.
My problem is this: When I do "rm -rf dir", on a directory, it won't
delete every file. It will error out with "Directory not empty"
errors.
The directory that it has trouble with, is the largest on the
filesystem. It has 153 files and 5 subdirectories, for a total of 158
file objects. When the error happens, it deletes most, but not all,
of them. It leaves behind 8 files, and no subdirectories. Strange.
Is 150 a magic number within yaffs2?
If I repeat the "rm -rf dir" command again, immediately afterwards, it
succeeds. All files are correctly deleted.
The NAND on this board appears to be working normally, no errors are
logged, except for the usual handful of known-bad blocks that are
correctly detected at yaffs2 mount time (and correctly skipped over).
Is this a bug in yaffs2? I saw it mentioned on this mailing list, a
fairly long time ago:
http://lists.aleph1.co.uk/lurker/message/20050912.022632.ddf2d525.en.html
That was the only mention I could find. Has anybody else also
experienced this issue?
Thanks!
Josh Lehan