loop/011: skip if running on kernel older than v6.9.11
PATCH v2 1/1 loop/011: skip if running on kernel older than v6.9.11
The loop/011 is regression test for commit 5f75e081ab5c ("loop: Disable fallocate() zero and discard if not supported") which requires minimum kernel version 6.9.11. So running this test on kernel version older than v6.9.11 would FAIL. This patch ensures that we skip running loop/011 if kernel version is older than v6.9.11.
---
Changes from v1:
- loop/011 requires minimum kernel version 6.9.11 (Cyril, Shinichiro)
--- tests/loop/011 | 1 + 1 file changed, 1 insertion(+)
tests/loop/011 +1 -0
@@ -9,6 +9,7 @@ DESCRIPTION="Make sure unsupported backing file fallocate does not fill dmesg with errors" requires() { + _have_kver 6 9 11 _have_program mkfs.ext2 }
Signature · 1 line
2.45.2
Quoted 20 lines · Nilay Shroff
The loop/011 is regression test for commit
5f75e081ab5c("loop: Disablefallocate()zero and discard if not supported") which requires minimum kernel version 6.9.11. So running this test on kernel version older than v6.9.11 would FAIL. This patch ensures that we skip running loop/011 if kernel version is older than v6.9.11.Signed-off-by Nilay Shroff <[email protected]>---
Changes from v1:
- loop/011 requires minimum kernel version 6.9.11 (Cyril, Shinichiro)--- tests/loop/011 | 1 + 1 file changed, 1 insertion(+)tests/loop/011 +0
-0
tests/loop/011 line 14
Quoted 6 lines
tests/loop/011 +1
-0@@ -9,6 +9,7 @@ DESCRIPTION="Make sure unsupported backing file fallocate does not fill dmesg with errors" requires() { + _have_kver 6 9 11 _have_program mkfs.ext2 }
Please add a comment in tests/loop/011 that explains why the kernel version check is present.
Thanks,
Bart.
Quoted 16 lines · Bart Van Assche
Quoted 15 lines · Nilay Shroff
The loop/011 is regression test for commit
5f75e081ab5c("loop: Disablefallocate()zero and discard if not supported") which requires minimum kernel version 6.9.11. So running this test on kernel version older than v6.9.11 would FAIL. This patch ensures that we skip running loop/011 if kernel version is older than v6.9.11.Signed-off-by Nilay Shroff <[email protected]>---
Changes from v1:
- loop/011 requires minimum kernel version 6.9.11 (Cyril, Shinichiro)
---
tests/loop/011 | 1 +1 file changed, 1 insertion(+)
Quoted 14 lines
Quoted 10 lines
tests/loop/011 +0
-0@@ -9,6 +9,7 @@DESCRIPTION="Make sure unsupported backing file fallocate does not fill dmesg with errors"
requires(){
+_have_kver6 9 11
_have_programmkfs.ext2
}Please add a comment in tests/loop/011 that explains why the kernel version check is present.
OK, I will add a relevant comment and resend the patch.
Thanks,
--Nilay