This is the mail archive of the ecos-patches@sources.redhat.com 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 fails to create files


Sorry, this is a side effect of Gary merging two of
my patches into one. He asked me to check the result
and I did not notice the error he made. So here's my
patch again:

diff -ru packages-orig/fs/jffs2/current/ChangeLog packages/fs/jffs2/current/ChangeLog
--- packages-orig/fs/jffs2/current/ChangeLog	2004-03-16 13:51:05.209769944 +0100
+++ packages/fs/jffs2/current/ChangeLog	2004-03-16 14:05:15.043575568 +0100
@@ -1,3 +1,8 @@
+2004-03-16  Thomas Koeller  <thomas.koeller@baslerweb.com>
+
+       * src/fs-ecos.c:
+       Make JFFS2 honor O_TRUNC flag when opening files /w read access.
+
 2004-03-17  Oyvind Harboe <oyvind.harboe@zylin.com>
 
 	* src/fs-ecos.c: 
@@ -21,11 +26,6 @@
 	allowing path terminated with any number of '/'
 	(i.e : chdir(/tmp///)).
 
-2004-03-03  Thomas Koeller  <thomas.koeller@baslerweb.com>
-
-       * src/fs-ecos.c:
-       Make JFFS2 honor O_TRUNC flag when opening files /w read access.
-
 2004-02-17  David Woodhouse  <dwmw2@redhat.com>
 
 	* src/fs-ecos.c:
diff -ru packages-orig/fs/jffs2/current/src/fs-ecos.c packages/fs/jffs2/current/src/fs-ecos.c
--- packages-orig/fs/jffs2/current/src/fs-ecos.c	2004-03-16 13:51:05.460731792 +0100
+++ packages/fs/jffs2/current/src/fs-ecos.c	2004-03-16 14:03:39.432110720 +0100
@@ -735,7 +735,7 @@
 		return EISDIR;
 	}
 
-#ifndef CYGOPT_FS_JFFS2_WRITE
+#ifdef CYGOPT_FS_JFFS2_WRITE
 	if (mode & O_TRUNC) {
 		struct jffs2_inode_info *f = JFFS2_INODE_INFO(node);
 		struct jffs2_sb_info *c = JFFS2_SB_INFO(node->i_sb);







 Øyvind Harboe wrote:
> Small regression fix.
>
> Øyvind

-- 
--------------------------------------------------

Thomas Koeller, Software Development

Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany

Tel +49 (4102) 463-390
Fax +49 (4102) 463-46390

mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com

==============================


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