enhance yaffs2 support under some circumstances