All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] tests: Don't run f2fs test on systems with PAGE_SIZE more than 4096 bytes
@ 2020-04-29 14:06 Anatoly Pugachev
  2020-04-29 17:25 ` Hans Ulrich Niedermann
  0 siblings, 1 reply; 3+ messages in thread
From: Anatoly Pugachev @ 2020-04-29 14:06 UTC (permalink / raw)
  To: grub-devel

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 <matorola@gmail.com>
Reviewed-by: Mike Gilbert <floppym@gentoo.org>

---
 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-29 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-29 14:06 [PATCH v2] tests: Don't run f2fs test on systems with PAGE_SIZE more than 4096 bytes Anatoly Pugachev
2020-04-29 17:25 ` Hans Ulrich Niedermann
2020-04-29 20:34   ` Hans Ulrich Niedermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.