Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jTnNP-000638-Gr for mharc-grub-devel@gnu.org; Wed, 29 Apr 2020 10:07:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43542) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTnNJ-0005zu-It for grub-devel@gnu.org; Wed, 29 Apr 2020 10:07:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTnNI-0008Si-Nj for grub-devel@gnu.org; Wed, 29 Apr 2020 10:07:45 -0400 Received: from u164.east.ru ([195.170.63.164]:23708) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTnNI-00081Y-6O for grub-devel@gnu.org; Wed, 29 Apr 2020 10:07:44 -0400 Received: by u164.east.ru (Postfix, from userid 1001) id 3C75C50B6AA; Wed, 29 Apr 2020 17:06:36 +0300 (MSK) Date: Wed, 29 Apr 2020 17:06:36 +0300 From: Anatoly Pugachev To: grub-devel@gnu.org Subject: [PATCH v2] tests: Don't run f2fs test on systems with PAGE_SIZE more than 4096 bytes Message-ID: <20200429140636.GA4270@yogzotot> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: none client-ip=195.170.63.164; envelope-from=mator@u164.east.ru; helo=u164.east.ru X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 10:06:36 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 195.170.63.164 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 14:07:46 -0000 Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes, since f2fs is not supported on these systems and trying to mount a f2fs filesystem would fail. v2 changes: - fix compare - quotes around variable expansion Signed-off-by: Anatoly Pugachev Reviewed-by: Mike Gilbert --- tests/f2fs_test.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/f2fs_test.in b/tests/f2fs_test.in index 1ea77c826..3da1dad57 100644 --- a/tests/f2fs_test.in +++ b/tests/f2fs_test.in @@ -15,5 +15,11 @@ if ! which mkfs.f2fs >/dev/null 2>&1; then exit 77 fi +PAGE_SIZE=$(getconf PAGE_SIZE) +F2FS_BLKSIZE=4096 +if [ "$PAGE_SIZE" -gt "$F2FS_BLKSIZE" ]; then + printf "f2fs is not supported on PAGE_SIZE(%d) != %d\n" $PAGE_SIZE $F2FS_BLKSIZE + exit 77 +fi "@builddir@/grub-fs-tester" f2fs -- 2.26.2