]> www.infradead.org Git - mtd-utils.git/commitdiff
fs-tests: integck: re-mount always if not root fs
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 16:16:22 +0000 (19:16 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:30 +0000 (19:12 +0300)
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

index 372a348625eb49acaf49f7b062340d8930542b62..9a2f3b4ab455fba49e2d23559a35af3d53a20753 100644 (file)
@@ -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)