mtd/util nftl_format.c,1.17,1.18

Russ Dill russ at infradead.org
Fri Apr 26 19:37:51 EDT 2002


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv17266

Modified Files:
	nftl_format.c 
Log Message:
accept erasesizes of 4Kb and 16Kb as well

Index: nftl_format.c
===================================================================
RCS file: /home/cvs/mtd/util/nftl_format.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- nftl_format.c	29 Aug 2001 14:28:48 -0000	1.17
+++ nftl_format.c	26 Apr 2002 23:37:48 -0000	1.18
@@ -219,8 +219,14 @@
 		return 1;
 	}
 
-	if (meminfo.erasesize != 0x2000) {
-		printf("Erase size not 8Kb - I'm confused\n");
+	switch (meminfo.erasesize) {
+	case 0x1000:
+	case 0x2000:
+	case 0x4000:
+		break;
+	default:
+		printf("Unrecognized Erase size, 0x%x - I'm confused\n", 
+			meminfo.erasesize);
 		close(fd);
 		return 1;
 	}





More information about the linux-mtd-cvs mailing list