[U-Boot] [PATCH V2 2/5] fs: implement infra-structure for an 'exists' function

Wolfgang Denk wd at denx.de
Mon Jan 27 22:44:51 CET 2014


Dear Stephen,

In message <52E6C6CC.7000604 at wwwdotorg.org> you wrote:
>
> > I understand and agree with your intentions, but I dislike to invent a
> > new, totally non-standard command.
> > 
> > In UNIX, we would use the "test" command for such purposes.  Would it
> > not make sense to implement this feature in a more compatible way?  we
> > have "test", soo, so we should be able to plug it in there?
> > 
> > What do you think?
> 
> I thought that "test -e mmc 0:1 /boot/boot.scr" was different enough
> from a regular Unix shell's single-argument path that it would look a
> little weird. Still, it works out fine, so I've sent V3 that implements
> this via test instead.

Yes, it looks weird, but unless we have a better device model and
abstraction for files this is probably the best we can get.

Thanks a lot!

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
What is wanted is not the will to believe,  but the will to find out,
which is the exact opposite.
		        -- Bertrand Russell, "Skeptical Essays", 1928


More information about the U-Boot mailing list