projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4e2762f
)
Fix resize up problem
author
charles
<charles>
Mon, 12 Mar 2007 20:55:39 +0000
(20:55 +0000)
committer
charles
<charles>
Mon, 12 Mar 2007 20:55:39 +0000
(20:55 +0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index dc435b203b889cb8cd85229f9b8a40c1c176a969..df368e3e746618b0c202e7cb11f87e1756c06010 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-12,7
+12,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.4
7 2007-02-14 01:09:06 wookey
Exp $";
+ "$Id: yaffs_guts.c,v 1.4
8 2007-03-12 20:55:39 charles
Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-4310,7
+4310,13
@@
int yaffs_ResizeFile(yaffs_Object * in, loff_t newSize)
in->variant.fileVariant.fileSize = newSize;
yaffs_PruneFileStructure(dev, &in->variant.fileVariant);
in->variant.fileVariant.fileSize = newSize;
yaffs_PruneFileStructure(dev, &in->variant.fileVariant);
+ } else {
+ /* newsSize > oldFileSize */
+ in->variant.fileVariant.fileSize = newSize;
}
}
+
+
+
/* Write a new object header.
* show we've shrunk the file, if need be
* Do this only if the file is not in the deleted directories.
/* Write a new object header.
* show we've shrunk the file, if need be
* Do this only if the file is not in the deleted directories.