diff packages/fs/jffs2/current/src/fs-ecos.c @ 1705:99834d6b6eeb

* tests/fileio1.c (main): If we have two filesystem configured mount the second one on /mnt and list the root of it. * src/fs-ecos.c (jffs2_fo_write): Fixed a typo in a debug print which is normally disabled. * src/fs-ecos.c (jffs2_fo_lseek): Put back part of the fix for lseeking past the end of the file which was removed during the last merge with MTD. * src/flashio.c (jffs2_flash_erase): Minor update for new flash API.
author asl
date Thu, 05 Aug 2004 13:41:33 +0000
parents d708ea3b49d2
children
line wrap: on
line diff
--- a/packages/fs/jffs2/current/src/fs-ecos.c
+++ b/packages/fs/jffs2/current/src/fs-ecos.c
@@ -1360,7 +1360,7 @@ static int jffs2_fo_write(struct CYG_FIL
 		int err;
 
 		D2(printf("jffs2_fo_write page_start_pos %d\n", pos));
-		D2(printf("jffs2_fo_write transfer size %d\n", l));
+		D2(printf("jffs2_fo_write transfer size %d\n", len));
 
 		err = jffs2_write_inode_range(c, f, &ri, buf,
 					      pos, len, &writtenlen);
@@ -1420,7 +1420,7 @@ static int jffs2_fo_lseek(struct CYG_FIL
 
         // Check that pos is still within current file size, or at the
         // very end.
-        if (pos < 0 || pos > node->i_size)
+        if (pos < 0 )
                 return EINVAL;
 
 	// All OK, set fp offset and return new position.