[U-Boot] [PATCH 3/4 v2] UBIFS: Change ubifsload to not read beyond the requested size

Stefan Roese sr at denx.de
Thu Dec 2 16:18:39 CET 2010


Hi Wolfgang,

sorry for the late reply. I just "stumbled" again over this mail.

On Monday 01 November 2010 20:05:00 Wolfgang Denk wrote:
> I still wonder what's the logic behind this code. When will
> read_block() return -ENOENT (aka "No such file or directory") ?
> What are the other possible error conditions, and why would it make
> sense to continue reading after these other errors?

As it seems, ENOENT is used to mark "a hole" in the file system. Meaning space 
that will be filled with zeros but does not occupy space (other than in the 
index). So we should keep the existing logic intact.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list