static __u8 yaffs_WriteFailCorruption(int chunkInNAND)
{
+
+ // Whole blocks that fail
+ switch(chunkInNAND/YAFFS_CHUNKS_PER_BLOCK)
+ {
+ case 50:
+ case 52:
+ return 7;
+ }
+
+ // Single blocks that fail
switch(chunkInNAND)
{
case 2000:
case 3006:
case 3007: return 1;// ding one bit
- default: return 0;
}
+
+ return 0;
}
static void yaffs_ModifyWriteData(int chunkInNAND,__u8 *data)