From: Guixin Liu <kanie@linux.alibaba.com>
To: Daniel Wagner <dwagner@suse.de>
Cc: shinichiro.kawasaki@wdc.com, chaitanyak@nvidia.com,
linux-block@vger.kernel.org, linux-nvme@lists.infradead.org
Subject: Re: [PATCH blktests v3 2/2] nvme: test the nvme reservation feature
Date: Mon, 14 Oct 2024 16:43:24 +0800 [thread overview]
Message-ID: <d70e2172-6305-4ec9-ab09-f2421e536cbd@linux.alibaba.com> (raw)
In-Reply-To: <4f6fac7b-2ef7-4255-94d1-9387f4110765@flourine.local>
在 2024/10/14 15:23, Daniel Wagner 写道:
> On Sat, Oct 12, 2024 at 07:11:57PM GMT, Guixin Liu wrote:
>> +requires() {
>> + _nvme_requires
>> +}
> It's probably a good idea to test if the reservation feature is
> available, otherwise this test just fails on older kernels.
I checked the exists of resv_enable,
"if [[ -f "${ns_path}/resv_enable" ]] ; then", if not exist, skip this
test case.
>> +Running nvme/054
>> +Register
>> +
>> +NVME Reservation status:
>> +
>> +gen : 0
>> +rtype : 0
>> +regctl : 0
>> +ptpls : 0
>> +
>> +NVME Reservation success
> I think this is a bit fragile, because the output of the nvme command
> might be extended or reformatted (obviously not on purpose but happens).
> I'd recommend to explicitly check for the expected values in the test.
OK, I will add a "grep -E "xxx|xxx|xxx" " to filter the result we cared now.
Best Regards,
Guixin Liu
prev parent reply other threads:[~2024-10-14 8:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-12 11:11 [PATCH blktests v3 0/2] Test the NVMe reservation feature Guixin Liu
2024-10-12 11:11 ` [PATCH blktests v3 1/2] nvme/{md/001,rc,002,016,017,030,052}: introduce --resv_enable argument Guixin Liu
2024-10-14 6:41 ` Chaitanya Kulkarni
2024-10-14 7:17 ` Daniel Wagner
2024-10-12 11:11 ` [PATCH blktests v3 2/2] nvme: test the nvme reservation feature Guixin Liu
2024-10-14 6:43 ` Chaitanya Kulkarni
2024-10-14 8:34 ` Guixin Liu
2024-10-14 7:23 ` Daniel Wagner
2024-10-14 8:43 ` Guixin Liu [this message]
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=d70e2172-6305-4ec9-ab09-f2421e536cbd@linux.alibaba.com \
--to=kanie@linux.alibaba.com \
--cc=chaitanyak@nvidia.com \
--cc=dwagner@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.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