Allow mount even if restore failed.
authorTaeJun Kwon <tj80.kwon@samsung.com>
Thu, 13 Apr 2017 08:54:48 +0000 (17:54 +0900)
committerTaeJun Kwon <tj80.kwon@samsung.com>
Thu, 13 Apr 2017 08:54:48 +0000 (17:54 +0900)
Even if restore failed, clean journal area & execute bind when mount

os/fs/smartfs/smartfs_utils.c

index 12ec2c8..371605f 100644 (file)
@@ -2001,7 +2001,8 @@ int smartfs_journal_init(struct smartfs_mountpt_s *fs)
                                 * restored yet */
                                ret = process_transaction(fs);
                                if (ret != OK) {
-                                       goto err_out;
+                                       fdbg("process_transaction failed, but clean journal area\n");
+                                       break;
                                }
                        } else {
                                /* If a valid transaction does not exist here, stop checking further */
@@ -2013,7 +2014,7 @@ int smartfs_journal_init(struct smartfs_mountpt_s *fs)
                        /* Now restore write transactions from the list */
                        ret = restore_write_transactions(fs);
                        if (ret != OK) {
-                               goto err_out;
+                               fdbg("restore_write_transactions failed, but clean journal area\n");
                        }
                }
        }