X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_fileem2k.c;h=786094b349a307c5ab28ba41feb05f068086e1b4;hp=0a9b9e337009192cec6305d652c45502faafab63;hb=40b1e54e4e59aaeb6bafabcda5df47bddc5ecfee;hpb=f216bcabdaf791aa93ad2e58c1d747d2d8bd6617 diff --git a/direct/yaffs_fileem2k.c b/direct/yaffs_fileem2k.c index 0a9b9e3..786094b 100644 --- a/direct/yaffs_fileem2k.c +++ b/direct/yaffs_fileem2k.c @@ -15,7 +15,7 @@ // This provides a YAFFS nand emulation on a file for emulating 2kB pages. // THis is only intended as test code to test persistence etc. -const char *yaffs_flashif_c_version = "$Id: yaffs_fileem2k.c,v 1.2 2004-11-22 03:22:25 charles Exp $"; +const char *yaffs_flashif_c_version = "$Id: yaffs_fileem2k.c,v 1.3 2005-07-03 05:48:11 charles Exp $"; #include "yportenv.h" @@ -133,7 +133,7 @@ int yflash_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 { pos = chunkInNAND * PAGE_SIZE + PAGE_DATA_SIZE; lseek(filedisk.handle,pos,SEEK_SET); - if(dev->isYaffs2) + if( 0 && dev->isYaffs2) { written = write(filedisk.handle,tags,sizeof(yaffs_ExtendedTags)); @@ -207,7 +207,7 @@ int yflash_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *da { pos = chunkInNAND * PAGE_SIZE + PAGE_DATA_SIZE; lseek(filedisk.handle,pos,SEEK_SET); - if(dev->isYaffs2) + if(0 && dev->isYaffs2) { nread= read(filedisk.handle,tags,sizeof(yaffs_ExtendedTags)); if(nread != sizeof(yaffs_ExtendedTags)) return YAFFS_FAIL;