2009/12/16 JiSheng Zhang <
jszhang3@gmail.com>:
> Hi list,
>
> First mount an empty partition, then cp some files to the mnt dir then
> run "df", and then delete all the files, then run "df" again. df
> report this time is wrong. It seems that the chunks occupied by
> unlinked files aren't recycled until needed.
>
> Is this a bug or characteristic?
>
I think I found where the problem was. in revision 1.62 of
yaffs_guts.c yaffs_ResizeFile(in, 0); is added at the beginning of
function yaffs_DeleteFile(). Could someone give an explanation?
Thanks,
Jisheng