From: Johannes Thumshirn Date: Thu, 3 May 2018 15:00:53 +0000 (+0200) Subject: nvme: fix counting the target port X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=09a95cac99fb2eb4f9228daff6a19ae1b46b65ce;p=users%2Fsagi%2Fblktests.git nvme: fix counting the target port Signed-off-by: Johannes Thumshirn --- diff --git a/common/nvme b/common/nvme index b1af5ad..96cb465 100644 --- a/common/nvme +++ b/common/nvme @@ -27,11 +27,11 @@ _test_dev_is_nvme() { _create_nvmet_port() { local trtype="$1" - local nvmet_cfs="/sys/kernel/config/nvmet/" + local nvmet_cfs="/sys/kernel/config/nvmet" local port for ((port = 0; ; port++)); do - if [[ ! -e "${nvmet_cfs}/${port}" ]]; then + if [[ ! -e "${nvmet_cfs}/ports/${port}" ]]; then break fi done