This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cyg_fs_lock() problem with jffs2 garbage collect


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]