[PATCH blktests] nvme/040: fix write file path

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Thu Jul 28 17:15:05 PDT 2022


The test case nvme/040 performs I/O to a nvmf device file. However, it
specifies wrong path to the device file then the I/O is done to a
regular file. Hence fix the path.

Fixes: ebf197d1aea4 ("nvme: add nvmf reset/disconnect during traffic test")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
---
 tests/nvme/040 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/nvme/040 b/tests/nvme/040
index 10c1815..04bd726 100755
--- a/tests/nvme/040
+++ b/tests/nvme/040
@@ -37,7 +37,7 @@ test() {
 
 	# start fio job
 	echo "starting background fio"
-	_run_fio_rand_io --filename="${nvmedev}n1" --size=1g \
+	_run_fio_rand_io --filename="/dev/${nvmedev}n1" --size=1g \
 		--group_reporting --ramp_time=5  &> /dev/null &
 	sleep 5
 
-- 
2.36.1




More information about the Linux-nvme mailing list