new change to fix infinite loop on YAFFS2 detection - correct casting
Restructured yaffs2 initialize spare function
Added test to limit number of blocks tested by yaffs2 in auto-detect mode