X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_vfs_multi.c;h=c61da67da12f952edba6b5ae51f8996ddeb5dcd3;hp=7d21cbae90573366c6afd7dcbebe9cfb31dade49;hb=ec113a5a0f4fb6569777ef91df708f81e71b949f;hpb=1996f7866c793b99020d2d204d522291609e9fbb diff --git a/yaffs_vfs_multi.c b/yaffs_vfs_multi.c index 7d21cba..c61da67 100644 --- a/yaffs_vfs_multi.c +++ b/yaffs_vfs_multi.c @@ -31,6 +31,10 @@ * >> 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 #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");