mtd/fs/jffs2/ecos/src fs-ecos.c,1.3,1.4

David Woodhouse dwmw2 at infradead.org
Tue Sep 24 17:51:14 EDT 2002


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

Modified Files:
	fs-ecos.c 
Log Message:
indent

Index: fs-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/fs-ecos.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fs-ecos.c	24 Sep 2002 21:50:41 -0000	1.3
+++ fs-ecos.c	24 Sep 2002 21:51:12 -0000	1.4
@@ -27,44 +27,46 @@
 // Forward definitions
 
 // Filesystem operations
-static int jffs2_mount    ( cyg_fstab_entry *fste, cyg_mtab_entry *mte );
-static int jffs2_umount   ( cyg_mtab_entry *mte );
-static int jffs2_open     ( cyg_mtab_entry *mte, cyg_dir dir, const char *name,
-                             int mode,  cyg_file *fte );
-static int jffs2_ops_unlink   ( cyg_mtab_entry *mte, cyg_dir dir, const char *name );
-static int jffs2_ops_mkdir    ( cyg_mtab_entry *mte, cyg_dir dir, const char *name );
-static int jffs2_ops_rmdir    ( cyg_mtab_entry *mte, cyg_dir dir, const char *name );
-static int jffs2_ops_rename   ( cyg_mtab_entry *mte, cyg_dir dir1, const char *name1,
[...3241 lines suppressed...]
+	struct super_block *sb = OFNI_BS_2SFFJ(c);
+
+	e.offset = jeb->offset;
+	e.len = c->sector_size;
+	e.err_address = &err_addr;
+
+	//        D2(printf("FLASH ERASE ENABLED!!!\n"));
+	//        D2(printf("erase address = %x\n", CYGNUM_FS_JFFS2_BASE_ADDRESS + jeb->offset));
+	//        D2(printf("size = %x\n", c->sector_size));
 
-    err = cyg_io_get_config( sb->s_dev, CYG_IO_GET_CONFIG_FLASH_ERASE,
-                             &e, &len );
+	err = cyg_io_get_config(sb->s_dev, CYG_IO_GET_CONFIG_FLASH_ERASE,
+				&e, &len);
 
-    return ( err != ENOERR || e.flasherr != 0 );
+	return (err != ENOERR || e.flasherr != 0);
 }
 
 // -------------------------------------------------------------------------





More information about the linux-mtd-cvs mailing list