Hello Ed
> The Yaffs Direct stuff does not expose background gc. I will work up the
> code & some explanation to do that today. You will basically have a
> function that you put in a thread and call occasionally.
Further to the last reply,...
I have exposed the yaffs background gc in yaffsfs.c and have set up an example
in the test harness using pthreads.
See:
http://yaffs.net/gitweb?p=yaffs2.git;a=commit;h=de117c122a4328102305eb6dbe57ad22c1b1eba8
This has had minimal testing, but is rock solid in Linux so it should be Ok
here too.
There are two variants of the function:
yaffs_do_ background_gc(path, urgent);
yaffs_do_ background_gc_reldev(dev, urgent);
Call the version that is easier.
Be careful. The functions use locking, so your locking must be set up before
you kick this off.
Let me know how you get on.
Charles