Yes you absolutely can call gc at any time when the Yaffs file system is
mounted, so long as all the locking is done safely.
This is done through the background gc mechanism.
Yaffs under Linux has this running as a default.
Under Yaffs Direct there's a function
int yaffs_do_background_gc(const YCHAR *path, int urgency);
that does this.
This needs to be called periodically (eg. in a gc thread).
-- Charles
On Tue, Oct 28, 2014 at 6:57 AM, <
Chris.Gofforth@corp.rockwellcollins.com>
wrote:
> Related to the bit flip/ read disturb errors on MLC flash. It is
> recommended to cause a GC to occur on that block. GC is checked during
> writes, but on a Read Only File System this will not happen.
> Can We just call the GC function on a periodic bases, even if the file
> system is mounted RO?
>
> Thanks
>
> Chris G
>
>
>
>
>
> _______________________________________________
> yaffs mailing list
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>