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

login
register
mail settings
Submitter Artem Bityutskiy
Date April 22, 2011, 5:25 p.m.
Message ID <1303493124-7619-12-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/92557/
State New
Headers show

Comments

Artem Bityutskiy - April 22, 2011, 5:25 p.m.
From: Artem Bityutskiy <Artem.Bityutskiy@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@nokia.com>
---
 tests/fs-tests/integrity/integck.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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)