Linux block layer
 help / color / mirror / Atom feed
From: Nilay Shroff <nilay@linux.ibm.com>
To: linux-block@vger.kernel.org
Cc: chrubis@suse.cz, shinichiro.kawasaki@wdc.com,
	gjoyce@linux.ibm.com, Nilay Shroff <nilay@linux.ibm.com>
Subject: [PATCH blktests] loop/011: skip if running on kernel older than v6.10
Date: Wed, 31 Jul 2024 16:47:45 +0530	[thread overview]
Message-ID: <20240731111804.1161524-1-nilay@linux.ibm.com> (raw)

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


             reply	other threads:[~2024-07-31 11:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-31 11:17 Nilay Shroff [this message]
2024-07-31 11:23 ` [PATCH blktests] loop/011: skip if running on kernel older than v6.10 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240731111804.1161524-1-nilay@linux.ibm.com \
    --to=nilay@linux.ibm.com \
    --cc=chrubis@suse.cz \
    --cc=gjoyce@linux.ibm.com \
    --cc=linux-block@vger.kernel.org \
    --cc=shinichiro.kawasaki@wdc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox