[ECOS] cyg_fs_lock() problem with jffs2 garbage collect
Per Hedblom
per.hedblom@abem.se
Tue Jan 4 09:05:00 GMT 2005
Hi,
Thanks Andrew for spending time on this.
> I could walk cyg_mtab[] to find one of the mounts with root pointing
> to the root of the filesystem, but it seems wrong for a filesystem to
> be doing this.
I had one idea to implement the call to jffs2_garbage_collect_pass(c) as a
getinfo function for jffs2 and then do something like
cyg_fs_getinfo( "/", FS_JFFS2_GARBAGE_COLLECT, &info, sizeof(info)) from the
gc_thread. But this solution still requires a valid mount point for the
filesystem. This would also allow the embedded application to force garbage
collection at a suitable moment.
/Per
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list