This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
JFFS2 fails to create files
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 16 Mar 2004 13:29:41 +0100
- Subject: JFFS2 fails to create files
- Organization: Zylin AS
Small regression fix.
Øyvind
Index: current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/ChangeLog,v
retrieving revision 1.28
diff -a -w -u -r1.28 ChangeLog
--- current/ChangeLog 15 Mar 2004 17:03:44 -0000 1.28
+++ current/ChangeLog 16 Mar 2004 12:24:23 -0000
@@ -1,3 +1,9 @@
+2004-03-17 Oyvind Harboe <oyvind.harboe@zylin.com>
+
+ * src/fs-ecos.c:
+ With CYGOPT_FS_JFFS2_WRITE=1, file creation failed. The problem was
+ introduced in fs-ecos.c 1.20
+
2004-03-11 Oyvind Harboe <oyvind.harboe@zylin.com>
* src/fs-ecos.c:
Index: current/src/fs-ecos.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/src/fs-ecos.c,v
retrieving revision 1.21
diff -a -w -u -r1.21 fs-ecos.c
--- current/src/fs-ecos.c 15 Mar 2004 17:03:45 -0000 1.21
+++ current/src/fs-ecos.c 16 Mar 2004 12:24:25 -0000
@@ -686,7 +686,7 @@
if (!dir)
dir = mte->root;
-#ifdef CYGOPT_FS_JFFS2_WRITE
+#ifndef CYGOPT_FS_JFFS2_WRITE
if (mode & (O_CREAT|O_TRUNC|O_WRONLY))
return EROFS;
#endif