ref: 45764c06a8ed8b23c5e0961976d7deefd57fcd73
parent: c0f2dfea726520930b364a3a805d662ef5b4ebd8
author: gkostka <[email protected]>
date: Wed Dec 30 04:58:00 EST 2015
test_lwext4: add journaling to generic test module
--- a/fs_test/common/test_lwext4.c
+++ b/fs_test/common/test_lwext4.c
@@ -332,6 +332,18 @@
return false;
}
+ r = ext4_recover("/mp/");
+ if (r != EOK && r != ENOTSUP) {
+ printf("ext4_recover: rc = %d\n", r);
+ return false;
+ }
+
+ r = ext4_journal_start("/mp/");
+ if (r != EOK) {
+ printf("ext4_journal_start: rc = %d\n", r);
+ return false;
+ }
+
ext4_cache_write_back("/mp/", 1);
return true;
}
@@ -338,8 +350,17 @@
bool test_lwext4_umount(void)
{
+ int r;
+
ext4_cache_write_back("/mp/", 0);
- int r = ext4_umount("/mp/");
+
+ r = ext4_journal_stop("/mp/");
+ if (r != EOK) {
+ printf("ext4_journal_stop: fail %d", r);
+ return false;
+ }
+
+ r = ext4_umount("/mp/");
if (r != EOK) {
printf("ext4_umount: fail %d", r);
return false;