[U-Boot-Users] [PATCH7] microblaze - ROMFS adapt files

Wolfgang Denk wd at denx.de
Tue Sep 11 22:49:52 CEST 2007


In message <fa686aa40709110814m5024c66bo536ff12d0b8be7cd at mail.gmail.com> you wrote:
> On 8/30/07, Michal Simek <Monstr at seznam.cz> wrote:
> > DESC:  ROMFS support files and sorted names in Makefiles
> >
> > Signed-off-by: Michal Simek <monstr at monstr.eu>
> >
> > Note; I think that we can start process with redesigning all FS support
> 
> I'm still not really fond of this approach.  Repurposing CONFIG_JFFS2
> to add more and more filesystems is not a good approach.  I don't
> recommend merging this as is.

Agreed. In any case it's not a bug fix and thus will not go into
1.3.0.

> Ideally, the whole filesystem handling should be reworked into a
> single API, but I understand that it's a non-trivial amount of work.
> However, at the very least, ROMFS should be configured with a separate
> CONFIG_xxx macro.

Agreed, too.

> > -               /* check partition type for cramfs */
> > -               fsname = (cramfs_check(part) ? "CRAMFS" : "JFFS2");
> > +               /* check partition type for JFFS2, cramfs, romfs */
> > +               if (cramfs_check(part)) {
> > +                       fsname = "CRAMFS";
> > +               } else if (romfs_check(part)) {
> > +                       fsname = "ROMFS";
> > +               } else {
> > +                       fsname = "JFFS2";
> > +               }
> 
> This will get unwieldy in a real hurry.  This should probably be
> reworked into a table of filesystem handlers which binds all the
> driver callbacks.

Indeed.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The heart is not a logical organ.
	-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4




More information about the U-Boot mailing list