Received: from list by lists.gnu.org with archive (Exim 4.86_2) id 1hsNE3-0005Nn-1k for mharc-grub-devel@gnu.org; Tue, 30 Jul 2019 04:11:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48525) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsNE0-0005Nh-59 for grub-devel@gnu.org; Tue, 30 Jul 2019 04:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsNDz-0001qW-9X for grub-devel@gnu.org; Tue, 30 Jul 2019 04:11:12 -0400 Received: from u164.east.ru ([195.170.63.164]:36304 helo=mx.lavteam.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hsNDz-0001oV-2e for grub-devel@gnu.org; Tue, 30 Jul 2019 04:11:11 -0400 Received: from yogzotot (yogzotot [192.168.111.254]) by mx.lavteam.org (Postfix) with ESMTPS id 09B21370F for ; Tue, 30 Jul 2019 11:11:07 +0300 (MSK) Date: Tue, 30 Jul 2019 11:11:05 +0300 From: Anatoly Pugachev To: grub-devel@gnu.org Subject: [PATCH] Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes. Message-ID: <20190730081105.GA19472@yogzotot> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: Tue, 30 Jul 2019 08:11:13 -0000 don't run f2fs test on systems with PAGE_SIZE > 4096 bytes. Since f2fs is not supported on this systems (can't mount f2fs filesystem). Signed-off-by: Anatoly Pugachev --- tests/f2fs_test.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/f2fs_test.in b/tests/f2fs_test.in index 1ea77c826..9f8db7f35 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 > $F2FS_BLKSIZE ]; then + printf "F2FS not supported on PAGE_SIZE(%d) != %d\n" $PAGE_SIZE $F2FS_BLKSIZE + exit 77 +fi "@builddir@/grub-fs-tester" f2fs -- 2.22.0