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

Shin'ichiro Kawasaki <[email protected]>
Newsgroups org.infradead.lists.linux-nvme,org.kernel.vger.linux-block
Message-ID <[email protected]>
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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.