projects
/
yaffs
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
401d7b1
)
Fix blocks per chunk in resize
author
charles
<charles>
Mon, 7 Nov 2005 07:03:02 +0000
(07:03 +0000)
committer
charles
<charles>
Mon, 7 Nov 2005 07:03:02 +0000
(07:03 +0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index b3009d273b2aad927035ca781a521acc9818181e..fcb217ae850f3b4d98fc85abccac0c7a43684b26 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-14,7
+14,7
@@
*/
//yaffs_guts.c
*/
//yaffs_guts.c
-const char *yaffs_guts_c_version="$Id: yaffs_guts.c,v 1.4
3 2005-10-11 23:43:27
charles Exp $";
+const char *yaffs_guts_c_version="$Id: yaffs_guts.c,v 1.4
4 2005-11-07 07:03:02
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-3674,7
+3674,8
@@
int yaffs_ResizeFile(yaffs_Object *in, int newSize)
// using yaffs_DeleteChunk
chunkId = yaffs_FindAndDeleteChunkInFile(in,i,NULL);
// using yaffs_DeleteChunk
chunkId = yaffs_FindAndDeleteChunkInFile(in,i,NULL);
- if(chunkId < (dev->internalStartBlock * 32) || chunkId >= ((dev->internalEndBlock+1) * 32))
+ if(chunkId < (dev->internalStartBlock * dev->nChunksPerBlock) ||
+ chunkId >= ((dev->internalEndBlock+1) * dev->nChunksPerBlock))
{
//T(("Found daft chunkId %d for %d\n",chunkId,i));
}
{
//T(("Found daft chunkId %d for %d\n",chunkId,i));
}