Index: fs/jffs2/current/ChangeLog =================================================================== RCS file: /misc/cvsfiles/ecos/packages/fs/jffs2/current/ChangeLog,v retrieving revision 1.26 diff -u -r1.26 ChangeLog --- fs/jffs2/current/ChangeLog 9 Mar 2004 08:12:08 -0000 1.26 +++ fs/jffs2/current/ChangeLog 9 Mar 2004 15:54:29 -0000 @@ -10,6 +10,11 @@ allowing path terminated with any number of '/' (i.e : chdir(/tmp///)). +2004-03-03 Thomas Koeller + + * src/fs-ecos.c: + Make JFFS2 honor O_TRUNC flag when opening files /w read access. + 2004-02-17 David Woodhouse * src/fs-ecos.c: @@ -22,7 +27,11 @@ the _parent_inode, not the child (which may be zero in the case of an unlink). -004-01-05 Thomas Koeller +2004-01-09 Thomas Koeller + + * src/fs-ecos.c: Fixed inode reference counting in jffs2_ops_link(). + +2004-01-05 Thomas Koeller * cdl/jffs2.cdl: Re-added CYGPKG_FS_JFFS2_CFLAGS_REMOVE that had been removed by previous change. Index: fs/jffs2/current/src/fs-ecos.c =================================================================== RCS file: /misc/cvsfiles/ecos/packages/fs/jffs2/current/src/fs-ecos.c,v retrieving revision 1.19 diff -u -r1.19 fs-ecos.c --- fs/jffs2/current/src/fs-ecos.c 9 Mar 2004 08:12:08 -0000 1.19 +++ fs/jffs2/current/src/fs-ecos.c 9 Mar 2004 15:54:28 -0000 @@ -678,7 +678,7 @@ if (!dir) dir = mte->root; -#ifndef CYGOPT_FS_JFFS2_WRITE +#ifdef CYGOPT_FS_JFFS2_WRITE if (mode & (O_CREAT|O_TRUNC|O_WRONLY)) return EROFS; #endif @@ -992,7 +992,6 @@ // Allow through links to non-existing terminal objects if (ds2.last && err == ENOENT) { - jffs2_iput(ds2.node); ds2.node = NULL; err = ENOERR; }