mtd/util mkfs.jffs2.c,1.33,1.34

David Woodhouse dwmw2 at infradead.org
Mon Feb 3 19:38:36 EST 2003


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

Modified Files:
	mkfs.jffs2.c 
Log Message:
Minimum erase size 8KiB

Index: mkfs.jffs2.c
===================================================================
RCS file: /home/cvs/mtd/util/mkfs.jffs2.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- mkfs.jffs2.c	4 Feb 2003 00:37:44 -0000	1.33
+++ mkfs.jffs2.c	4 Feb 2003 00:38:34 -0000	1.34
@@ -1274,10 +1274,10 @@
 				/* If it's less than 4096, assume they meant KiB */
 				if (erase_block_size && erase_block_size < 0x1000)
 					erase_block_size *= 1024;
-				/* If it's less than 64KiB, they're not allowed */
-				if (erase_block_size < 0x10000) {
-					fprintf(stderr, "Increasing erase size to 64KiB minimum\n");
-					erase_block_size = 0x10000;
+				/* If it's less than 8KiB, they're not allowed */
+				if (erase_block_size < 0x2000) {
+					fprintf(stderr, "Increasing erase size to 8KiB minimum\n");
+					erase_block_size = 0x2000;
 				}
 				break;
 





More information about the linux-mtd-cvs mailing list