grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes.


From: Anatoly Pugachev
Subject: [PATCH] Don't run f2fs test on systems with PAGE_SIZE > 4096 bytes.
Date: Tue, 30 Jul 2019 11:11:05 +0300
User-agent: Mutt/1.10.1 (2018-07-13)

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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]