Linux block layer
 help / color / mirror / Atom feed
* [PATCH blktests] loop/011: skip if running on kernel older than v6.10
@ 2024-07-31 11:17 Nilay Shroff
  2024-07-31 11:23 ` Cyril Hrubis
  0 siblings, 1 reply; 8+ messages in thread
From: Nilay Shroff @ 2024-07-31 11:17 UTC (permalink / raw)
  To: linux-block; +Cc: chrubis, shinichiro.kawasaki, gjoyce, Nilay Shroff

The loop/011 is regression test for kernel commit 5f75e081ab5c ("loop: 
Disable fallocate() zero and discard if not supported") which requires 
minimum kernel version 6.10. So running this test on kernel version
older than v6.10 would FAIL. This patch ensures that we skip running 
loop/011 if kernel version is older than v6.10.

Signed-off-by: Nilay Shroff <nilay@linux.ibm.com>
---
 tests/loop/011 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/loop/011 b/tests/loop/011
index 35eb39b..b674dd7 100755
--- a/tests/loop/011
+++ b/tests/loop/011
@@ -9,6 +9,7 @@
 DESCRIPTION="Make sure unsupported backing file fallocate does not fill dmesg with errors"
 
 requires() {
+	_have_kver 6 10
 	_have_program mkfs.ext2
 }
 
-- 
2.45.2


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

end of thread, other threads:[~2024-08-01  9:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 11:17 [PATCH blktests] loop/011: skip if running on kernel older than v6.10 Nilay Shroff
2024-07-31 11:23 ` Cyril Hrubis
2024-07-31 12:01   ` Shinichiro Kawasaki
2024-07-31 12:41     ` Nilay Shroff
2024-07-31 12:46       ` Cyril Hrubis
2024-07-31 13:59         ` Nilay Shroff
2024-08-01  6:27           ` Shinichiro Kawasaki
2024-08-01  9:12             ` Nilay Shroff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox