This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: eCos jffs2 garbage collection thread + fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Per Hedblom <per dot hedblom at abem dot se>, Nick Garrett <nickg at ecoscentric dot com>
- Cc: 'Andrew Lunn' <andrew at lunn dot ch>,'eCos Patches' <ecos-patches at ecos dot sourceware dot org>,'David Woodhouse' <dwmw2 at infradead dot org>
- Date: Tue, 11 Jan 2005 09:23:52 +0100
- Subject: Re: eCos jffs2 garbage collection thread + fix
- References: <20041231100914.GF10484@lunn.ch> <20050111000715.F1BDE38004@smtp1-2-sn3.vrr.skanova.net>
> I have updated my patch. I solved the problem with a reference to the mte by
> saving a reference at mount time and make sure that this reference is valid
> after umount in case of multiple mount/umount (Not tested). It is maybe not
> the best solution but it seams to work.
It should work, but its a bit messy. I don't like breaking the
filesystem mount point abstration like this. At minimum i would move
your lookup code out of the filesystem into the io package and add a
function something like
struct cyg_mtab_entry * cyg_fs_root_lookup(cyg_dir *root);
I was hoping Nick would comment about this since its his design. Maybe
there is a better way to do this.
Andrew