This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: cyg_fs_lock() problem with jffs2 garbage collect
- From: "Per Hedblom" <per dot hedblom at abem dot se>
- To: "'Andrew Lunn'" <andrew at lunn dot ch>,"'eCos Disuss'" <ecos-discuss at ecos dot sourceware dot org>,"'Nick Garrett'" <nickg at ecoscentric dot com>
- Date: Tue, 4 Jan 2005 10:05:36 +0100
- Subject: RE: [ECOS] cyg_fs_lock() problem with jffs2 garbage collect
- Organization: ABEM Instrument AB
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