Skip to content

Commit 7b7829f

Browse files
igawkawasaki
authored andcommitted
common/nvme, nvme/051: drop final / for NVMET_[CFS|DFS] paths
There is no need to for the final / in the path. All users do add another / when concatenation a path except nvme/051. Drop the /, and add to nvme/051. This makes the path look more consistent when debugging. Signed-off-by: Daniel Wagner <[email protected]> [Shin'ichiro: added / to nvme/051] Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent fda2141 commit 7b7829f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

common/nvme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ _check_conflict_and_set_default NVME_NUM_ITER nvme_num_iter 1000
2525
nvmet_blkdev_type=${nvmet_blkdev_type:-"device"}
2626
NVMET_BLKDEV_TYPES=${NVMET_BLKDEV_TYPES:-"device file"}
2727
nvme_target_control="${NVME_TARGET_CONTROL:-}"
28-
NVMET_CFS="/sys/kernel/config/nvmet/"
28+
NVMET_CFS="/sys/kernel/config/nvmet"
2929
# shellcheck disable=SC2034
30-
NVMET_DFS="/sys/kernel/debug/nvmet/"
30+
NVMET_DFS="/sys/kernel/debug/nvmet"
3131
nvme_trtype=${nvme_trtype:-}
3232
nvme_adrfam=${nvme_adrfam:-}
3333

tests/nvme/051

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test() {
3333
_setup_nvmet
3434

3535
_nvmet_target_setup
36-
ns="${NVMET_CFS}subsystems/${def_subsysnqn}/namespaces/${def_nsid}"
36+
ns="${NVMET_CFS}/subsystems/${def_subsysnqn}/namespaces/${def_nsid}"
3737

3838
# fire off two enable/disable loops concurrently and wait
3939
# for them to complete...

0 commit comments

Comments
 (0)