This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JFFS2 possible error on sign of ENOSPC error


On Fri, Dec 02, 2005 at 04:05:30PM +0100, Stephane Royo wrote:
> Hello,
> 
> By using the JFFS2 support, i encountered a small problem about the sign of
> error ENOSPC, in all code we can find "return -ENOSPC" excepted in one
> case - around the line 1450 of fs-ecos.c- where we find "return  ENOSPC":
> 
> fonction jffs2_fo_write()
> {
> ...
>     if (writtenlen != len)
>       return ENOSPC;
> ...
> }
> 
> This difference forces the application to check the two cases; -ENOPSC and
> ENOPSC if it wants detect the lack of space in FLASH.
> 
> Anybody could assure me that is an "error"  ?

It is a known bug. 

http://bugzilla.ecoscentric.com/show_bug.cgi?id=1000036

Im sure there are more than just this one case you have found. It
really needs somebody to systematically check every return code and
look for negative values which should be positive.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]