projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44a75e0
)
Add cleanup for aborted checkpoint
author
charles
<charles>
Tue, 3 Nov 2009 02:41:00 +0000
(
02:41
+0000)
committer
charles
<charles>
Tue, 3 Nov 2009 02:41:00 +0000
(
02:41
+0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index 74b73ddefc3d36c351b25b8b3041380c703d3ee7..ebcae97243434b4191dc0cf76cbec1cc9fb7b148 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.9
1 2009-10-15 00:45:46
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.9
2 2009-11-03 02:41:00
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-7456,6
+7456,10
@@
int yaffs_GutsInitialise(yaffs_Device *dev)
yaffs_VerifyBlocks(dev);
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;
T(YAFFS_TRACE_TRACING,
(TSTR("yaffs: yaffs_GutsInitialise() done.\n" TENDSTR)));
return YAFFS_OK;