Mercurial > yaffs-ecoscentric
changeset 180:dd2ae17e37ee
Fix resize up problem
| author | charles |
|---|---|
| date | Mon, 12 Mar 2007 20:55:39 +0000 |
| parents | e6e78e317308 |
| children | 7bdee2571f8f |
| files | yaffs_guts.c |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -4310,7 +4310,13 @@ int yaffs_ResizeFile(yaffs_Object * in, 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.
