This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
JFFS2 possible error on sign of ENOSPC error
- From: "Stephane Royo" <stephane dot royo at europe-technologies dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 2 Dec 2005 16:05:30 +0100
- Subject: [ECOS] 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