projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent resizes bigger than 2GBytes
[yaffs2.git]
/
direct
/
yaffs_fileem.c
diff --git
a/direct/yaffs_fileem.c
b/direct/yaffs_fileem.c
index 30128d9d4cc675ab47d2a98f8e5857eae0d671c4..6953a68018ec8979b61a7864b633d49d7941eb61 100644
(file)
--- a/
direct/yaffs_fileem.c
+++ b/
direct/yaffs_fileem.c
@@
-16,10
+16,11
@@
* This is only intended as test code to test persistence etc.
*/
* 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.
6 2010-01-11 04:06:47 charles
Exp $";
#include "yportenv.h"
#include "yportenv.h"
+#include "yaffs_trace.h"
#include "yaffs_flashif.h"
#include "yaffs_guts.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.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)
{
if(filedisk.handle < 0)
{