[PATCH blktests v2 01/13] nvme/038: use nvme_trtype instead of hardcoding

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Tue Oct 29 23:51:37 PDT 2024


From: Hannes Reinecke <hare at suse.de>

There is no reason why loop is required, so switch to the default
transport type.

Signed-off-by: Hannes Reinecke <hare at suse.de>
Reviewed-by: Daniel Wagner <dwagner at suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
---
 tests/nvme/038 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/nvme/038 b/tests/nvme/038
index 8435415..497cc88 100755
--- a/tests/nvme/038
+++ b/tests/nvme/038
@@ -33,7 +33,7 @@ test() {
 	mkdir -p "${subsys_path}"
 	rmdir "${subsys_path}"
 
-	port=$(_create_nvmet_port loop)
+	port="$(_create_nvmet_port "${nvme_trtype}")"
 	_remove_nvmet_port "${port}"
 
 	echo "Test complete"
-- 
2.45.2




More information about the Linux-nvme mailing list