[PATCH 11/13] fs-tests: integck: re-mount always if not root fs

Artem Bityutskiy dedekind1 at gmail.com
Fri Apr 22 13:25:22 EDT 2011


From: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>

Commit 08cfd9d7cacc3c0b97530ad7e13fa8db75e99947 introduced a bug:
we do not re-mount the FS before checking at the first iteration.
This patch fixes the issue.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 tests/fs-tests/integrity/integck.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 372a348..9a2f3b4 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -2534,7 +2534,7 @@ static int integck(void)
 	if (ret)
 		return -1;
 
-	if (fsinfo.is_rootfs) {
+	if (!fsinfo.is_rootfs) {
 		close_open_files();
 		ret = remount_tested_fs();
 		if (ret)
-- 
1.7.2.3




More information about the linux-mtd mailing list