mtd/fs/jffs2 fs.c,1.44,1.45

dbrown at infradead.org dbrown at infradead.org
Tue Jun 29 09:32:59 EDT 2004


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

Modified Files:
	fs.c 
Log Message:
Refuse to mount on NAND flash without NAND support.


Index: fs.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/fs.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- fs.c	27 May 2004 12:05:11 -0000	1.44
+++ fs.c	29 Jun 2004 13:32:56 -0000	1.45
@@ -448,6 +448,13 @@
 
 	c = JFFS2_SB_INFO(sb);
 
+#ifndef CONFIG_JFFS2_FS_NAND
+	if (c->mtd->type == MTD_NANDFLASH) {
+		printk(KERN_ERR "jffs2: Cannot operate on NAND flash unless jffs2 NAND support is compiled in.\n");
+		return -EINVAL;
+	}
+#endif
+
 	c->flash_size = c->mtd->size;
 
 	/* 





More information about the linux-mtd-cvs mailing list