[PATCH blktests 2/4] nvme/rc: use _set_attr() in _create_nvmet_passthru()

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Sun Jul 12 17:39:04 PDT 2026


Commit 91316870b124 ("common/nvme, nvme/rc: use _set_attr() to trace
attribute writes") replaced sysfs/confgfs/debugfs attribute writes with
_set_attr() function call, but it missed to one place. Replace the
missed write.

Fixes: 91316870b124 ("common/nvme, nvme/rc: use _set_attr() to trace attribute writes")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
---
 tests/nvme/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/nvme/rc b/tests/nvme/rc
index d6496b3..1d71811 100644
--- a/tests/nvme/rc
+++ b/tests/nvme/rc
@@ -225,7 +225,7 @@ _create_nvmet_passthru() {
 	mkdir -p "${subsys_path}"
 	_set_attr 0 "${subsys_path}/attr_allow_any_host"
 
-	_test_dev_nvme_ctrl > "${passthru_path}/device_path"
+	_set_attr "$(_test_dev_nvme_ctrl)" "${passthru_path}/device_path"
 	_set_attr 1 "${passthru_path}/enable"
 	if [[ -f "${passthru_path}/clear_ids" ]]; then
 		_set_attr 1 "${passthru_path}/clear_ids"
-- 
2.55.0




More information about the Linux-nvme mailing list