X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_fileem.c;h=90c8f9e3f65dfd1a751bddaaefbaa328fa867ae4;hp=30128d9d4cc675ab47d2a98f8e5857eae0d671c4;hb=878b68a26d67eedbbb1d7943b353f01b3d144d4b;hpb=e1ac494e05a5dc7ab61d799af815d103a11d318c diff --git a/direct/yaffs_fileem.c b/direct/yaffs_fileem.c index 30128d9..90c8f9e 100644 --- a/direct/yaffs_fileem.c +++ b/direct/yaffs_fileem.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2007 Aleph One Ltd. + * Copyright (C) 2002-2010 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -16,10 +16,11 @@ * This is only intended as test code to test persistence etc. */ -const char *yaffs_flashif_c_version = "$Id: yaffs_fileem.c,v 1.3 2007-02-14 01:09:06 wookey Exp $"; +const char *yaffs_flashif_c_version = "$Id: yaffs_fileem.c,v 1.7 2010-02-18 01:18:04 charles Exp $"; #include "yportenv.h" +#include "yaffs_trace.h" #include "yaffs_flashif.h" #include "yaffs_guts.h" @@ -83,7 +84,7 @@ static int CheckInit(yaffs_Device *dev) filedisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024); - filedisk.handle = open("yaffsemfile", O_RDWR | O_CREAT, S_IREAD | S_IWRITE); + filedisk.handle = open("emfile-512-0", O_RDWR | O_CREAT, S_IREAD | S_IWRITE); if(filedisk.handle < 0) { @@ -209,8 +210,6 @@ int yflash_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) int yflash_InitialiseNAND(yaffs_Device *dev) { - dev->useNANDECC = 1; // force on useNANDECC which gets faked. - // This saves us doing ECC checks. return YAFFS_OK; }