Checkpointing changes
[yaffs2.git] / direct / yaffsfs.c
index b39524719491d87469cdb198a0c6f0e40896690a..67671ea6b69e90ce155b7cb68437f9c99ed34792 100644 (file)
@@ -25,7 +25,7 @@
 #endif
 
 
 #endif
 
 
-const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.10 2006-03-08 07:59:20 charles Exp $";
+const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.12 2006-05-08 10:13:35 charles Exp $";
 
 // configurationList is the list of devices that are supported
 static yaffsfs_DeviceConfiguration *yaffsfs_configurationList;
 
 // configurationList is the list of devices that are supported
 static yaffsfs_DeviceConfiguration *yaffsfs_configurationList;
@@ -1078,6 +1078,7 @@ int yaffs_unmount(const char *path)
                        int inUse;
                        
                        yaffs_FlushEntireDeviceCache(dev);
                        int inUse;
                        
                        yaffs_FlushEntireDeviceCache(dev);
+                       yaffs_CheckpointSave(dev);
                        
                        for(i = inUse = 0; i < YAFFSFS_N_HANDLES && !inUse; i++)
                        {
                        
                        for(i = inUse = 0; i < YAFFSFS_N_HANDLES && !inUse; i++)
                        {
@@ -1411,7 +1412,7 @@ int yaffs_link(const char *oldpath, const char *newpath)
        // Creates a link called newpath to existing oldpath
        yaffs_Object *obj = NULL;
        yaffs_Object *target = NULL;
        // Creates a link called newpath to existing oldpath
        yaffs_Object *obj = NULL;
        yaffs_Object *target = NULL;
-       int retVal;
+       int retVal = 0;
 
                
        yaffsfs_Lock();
 
                
        yaffsfs_Lock();