From: Artem Bityutskiy Date: Fri, 22 Apr 2011 16:16:22 +0000 (+0300) Subject: fs-tests: integck: re-mount always if not root fs X-Git-Tag: v1.4.5~65 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e2ef4cecc198371aae3fdaad5151aa7303dedb3e;p=mtd-utils.git fs-tests: integck: re-mount always if not root fs 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 --- 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)