From 4e07b0c360db5e74d3cbe5b3c6c8b86199017fbf Mon Sep 17 00:00:00 2001 From: Alan Adamson Date: Tue, 5 Jul 2022 13:56:31 -0700 Subject: [PATCH] tests/nvme: Set clear_ids for passthru targets This allows to connect to passthru targets when the client and target are on the same host. Signed-off-by: Alan Adamson [Shin'ichiro: replaced single bracket with double brackets] Signed-off-by: Shin'ichiro Kawasaki --- tests/nvme/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/nvme/rc b/tests/nvme/rc index ba21574..f5729ef 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -303,6 +303,9 @@ _create_nvmet_passthru() { _test_dev_nvme_ctrl > "${passthru_path}/device_path" echo 1 > "${passthru_path}/enable" + if [[ -f "${passthru_path}/clear_ids" ]]; then + echo 1 > "${passthru_path}/clear_ids" + fi } _remove_nvmet_passhtru() { -- 2.49.0