From: Alan Adamson Date: Tue, 5 Jul 2022 20:56:31 +0000 (-0700) Subject: tests/nvme: Set clear_ids for passthru targets X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4e07b0c360db5e74d3cbe5b3c6c8b86199017fbf;p=users%2Fhch%2Fblktests.git 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 --- 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() {