[LTP] [PATCH 01/15] fallocate04: Remove kernel >= 3.15 check

Petr Vorel pvorel@suse.cz
Mon May 27 08:33:32 CEST 2024


Since 9e9654cf2 LTP supports kernel >= 4.4.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/fallocate/fallocate04.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/testcases/kernel/syscalls/fallocate/fallocate04.c b/testcases/kernel/syscalls/fallocate/fallocate04.c
index ff372a9bf..7b285fb5d 100644
--- a/testcases/kernel/syscalls/fallocate/fallocate04.c
+++ b/testcases/kernel/syscalls/fallocate/fallocate04.c
@@ -148,11 +148,6 @@ static void test03(void)
 {
 	tst_res(TINFO, "zeroing file space with FALLOC_FL_ZERO_RANGE");
 
-	if (tst_kvercmp(3, 15, 0) < 0) {
-		tst_brk(TCONF,
-			"FALLOC_FL_ZERO_RANGE needs Linux 3.15 or newer");
-	}
-
 	size_t alloc_size0 = get_allocsize();
 
 	tst_res(TINFO, "read current allocated file size '%zu'", alloc_size0);
-- 
2.43.0



More information about the ltp mailing list