[PATCH testsuite] tests: disable testing of f2fs when PAGE_SIZE != 4096

Ondrej Mosnacek <[email protected]> Fri, 31 Jul 2026 10:40:09 +0200
Newsgroups org.kernel.vger.selinux
Message-ID <[email protected]>
Current latest f2fs-tools release (1.16.0) doesn't work with it, so just
disable the test in such case. See the added comment for more details.

The issue can be reproduced for example:
* on a ppc64le machine with Fedora
* on an aarch64 machine with Fedora ELN or CentOS Stream 10 after
  running `dnf install -y kernel-64k kernel-64k-devel
  kernel-64k-modules-extra` and rebooting

Signed-off-by: Ondrej Mosnacek <[email protected]>
---
 tests/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/Makefile b/tests/Makefile
index 4fe6f3c..084c788 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -21,6 +21,15 @@ POL_TYPE := $(shell ./pol_detect $(SELINUXFS))
 # Filter out unavailable filesystems
 FILESYSTEMS := $(foreach fs,$(FILESYSTEMS),$(shell modprobe $(fs) > /dev/null 2>&1 && echo $(fs)))
 
+# Filter out f2fs if PAGE_SIZE != 4096.
+# Latest released f2fs-tools (1.16.0) can't produce a filesystem that is
+# mountable on a large page kernel. Latest master branch can do it with
+# `mkfs.f2fs -b $(getconf PAGESIZE) ...` and device size >= 1GiB (in case
+# of 64K page size), but that's not packaged in Fedora currently.
+ifneq ($(shell getconf PAGESIZE),4096)
+FILESYSTEMS := $(filter-out f2fs,$(FILESYSTEMS))
+endif
+
 SUBDIRS:= domain_trans entrypoint execshare exectrace execute_no_trans \
 	fdreceive inherit link mkdir msg open ptrace readlink relabel rename \
 	rxdir sem setattr setnice shm sigkill stat sysctl task_create \
-- 
2.55.0