nmve/018 fixes
v2 cover nmve/018 fixes
changes from v1:
- added revied-by tag from Logan
- patch #2 fixed typo in commit message
- patch #2 reworded error message as suggested by Robert
changes from v0:
- added "nmve/018: Reword misleading error message"
Daniel Wagner (2):
nvme/018: Ignore message generated by nvme read
nmve/018: Reword misleading error message
tests/nvme/018 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.16.4
PATCH v2 1/2 nvme/018: Ignore message generated by nvme read
nvme-cli writes 'CAP_EXCEEDED' message also on stdout not just stderr. This lets the test fail as well.
--- tests/nvme/018 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/nvme/018 +1 -1
@@ -43,7 +43,7 @@ test() { sectors="$(blockdev --getsz "/dev/${nvmedev}n1")" bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" - nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" 2>"$FULL" \ + nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" &>"$FULL" \ && echo "ERROR: Successfully read out of device lba range" nvme disconnect -n "${subsys_name}"
Signature · 1 line
2.16.4
Re: [PATCH blktests v2 1/2] nvme/018: Ignore message generated by nvme read
Quoted 6 lines · Daniel Wagner
nvme-cli writes '
CAP_EXCEEDED' message also on stdout not just stderr. This lets the test fail as well.Fixes 1aee5f430b30 ("nvme/018: Ignore error message generated by nvme read")Signed-off-by Daniel Wagner<[email protected]>Reviewed-by Logan Gunthorpe<[email protected]>
PATCH v2 2/2 nmve/018: Reword misleading error message
In reply to Daniel Wagner'nvme read' is expected to fail, though the error message "ERROR:
Successfully..." is misleading. Reword the error text to clarify the real intent of the test and what failed.
--- tests/nvme/018 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/nvme/018 +2 -2
@@ -3,7 +3,7 @@ # Copyright (C) 2018 Sagi Grimberg # # Test NVMe out of range access on a file backend. Regression test for commit -# 9c891c139894 ("nvmet: check fileio lba range access boundaries"). +# 9c891c139894 ("nvmet: check fileio LBA range access boundaries"). . tests/nvme/rc
@@ -44,7 +44,7 @@ test() { bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" &>"$FULL" \ - && echo "ERROR: Successfully read out of device lba range" + && echo "ERROR: nvme read for out of range LBA was not rejected" nvme disconnect -n "${subsys_name}"
Signature · 1 line
2.16.4
Re: [PATCH blktests v2 2/2] nmve/018: Reword misleading error message
Quoted 6 lines · Daniel Wagner
Successfully..." is misleading. Reword the error text to clarify the real intent of the test and what failed.
Reported-by Logan Gunthorpe<[email protected]>Signed-off-by Daniel Wagner<[email protected]>Reviewed-by Logan Gunthorpe<[email protected]>