*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.36 2005-12-08 00:54:55 charles Exp $";
+ "$Id: yaffs_fs.c,v 1.38 2005-12-15 20:27:56 charles Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
T(YAFFS_TRACE_OS, (" oobsize %d\n", mtd->oobsize));
T(YAFFS_TRACE_OS, (" erasesize %d\n", mtd->erasesize));
T(YAFFS_TRACE_OS, (" size %d\n", mtd->size));
+
+#ifdef CONFIG_YAFFS_AUTO_YAFFS2
+
+ if (yaffsVersion == 1 &&
+ mtd->oobblock >= 2048) {
+ T(YAFFS_TRACE_ALWAYS,("yaffs: auto selecting yaffs2\n"));
+ yaffsVersion = 2;
+ }
+#endif
if (yaffsVersion == 2) {
/* Check for version 2 style functions */