yaffs Use file emulator for python test
[yaffs2.git] / yaffs_vfs_multi.c
index 7d21cbae90573366c6afd7dcbebe9cfb31dade49..c61da67da12f952edba6b5ae51f8996ddeb5dcd3 100644 (file)
  * >> inode->u.generic_ip points to the associated yaffs_Object.
  */
 
+/*
+ * There are two variants of the VFS glue code. This variant should compile
+ * for any version of Linux.
+ */
 #include <linux/version.h>
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 10))
@@ -2946,6 +2950,10 @@ static struct super_block *yaffs_internal_read_super(int yaffsVersion,
        param->refreshPeriod = 500;
 #endif
 
+#ifdef CONFIG_YAFFS__ALWAYS_CHECK_CHUNK_ERASED
+       param->alwaysCheckErased = 1;
+#endif
+
        if(options.empty_lost_and_found_overridden)
                param->emptyLostAndFound = options.empty_lost_and_found;
 
@@ -3191,6 +3199,7 @@ static char *yaffs_dump_dev_part0(char *buf, yaffs_Device * dev)
        buf += sprintf(buf, "refreshPeriod...... %d\n", dev->param.refreshPeriod);
        buf += sprintf(buf, "nShortOpCaches..... %d\n", dev->param.nShortOpCaches);
        buf += sprintf(buf, "nReservedBlocks.... %d\n", dev->param.nReservedBlocks);
+       buf += sprintf(buf, "alwaysCheckErased.. %d\n", dev->param.alwaysCheckErased);
 
        buf += sprintf(buf, "\n");