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]

JFFS2 possible error on sign of ENOSPC error


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"  ?

Thank you,
Stephane


-- 
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]