Mercurial > yaffs-ecoscentric-gpl
changeset 310:49eaa5873a0e
Add cleanup for aborted checkpoint
| author | charles <charles> |
|---|---|
| date | Tue, 03 Nov 2009 02:41:00 +0000 |
| parents | dee97460ace7 |
| children | 97a4bd3d225e |
| files | yaffs_guts.c |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -12,7 +12,7 @@ */ const char *yaffs_guts_c_version = - "$Id: yaffs_guts.c,v 1.91 2009-10-15 00:45:46 charles Exp $"; + "$Id: yaffs_guts.c,v 1.92 2009-11-03 02:41:00 charles Exp $"; #include "yportenv.h" @@ -7456,6 +7456,10 @@ int yaffs_GutsInitialise(yaffs_Device *d yaffs_VerifyBlocks(dev); + /* Clean up any aborted checkpoint data */ + if(!dev->isCheckpointed && dev->blocksInCheckpoint > 0) + yaffs_InvalidateCheckpoint(dev); + T(YAFFS_TRACE_TRACING, (TSTR("yaffs: yaffs_GutsInitialise() done.\n" TENDSTR))); return YAFFS_OK;
