mtd/fs/jffs2/ecos/src fs-ecos.c,1.33,1.34

David Woodhouse dwmw2 at infradead.org
Wed Mar 31 07:17:12 EST 2004


Update of /home/cvs/mtd/fs/jffs2/ecos/src
In directory phoenix.infradead.org:/tmp/cvs-serv6825/src

Modified Files:
	fs-ecos.c 
Log Message:
2004-03-31  David Woodhouse  <dwmw2 at infradead.org>

	* src/fs-ecos.c (jffs2_fo_write): Set ri.isize so that non-append
	writes don't truncate the file.


Index: fs-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/fs-ecos.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- fs-ecos.c	2 Dec 2003 10:43:03 -0000	1.33
+++ fs-ecos.c	31 Mar 2004 12:17:09 -0000	1.34
@@ -1339,6 +1339,7 @@
 		if (err)
 			return -err;
 	}
+	ri.isize = inode->i_size;
 
 	// Now loop over the iovecs until they are all done, or
 	// we get an error.




More information about the linux-mtd-cvs mailing list