Skip to content

Commit 361ad31

Browse files
committed
common/nvme: remove allowed_hosts before remove subsys in nvmet configfs
$ nvme_trtype=tcp ./check nvme/063 nvme/063 (tr=tcp) (Create authenticated TCP connections with secure concatenation) runtime 2.220s ... WARNING: Test did not clean up port: 0 nvme/063 (tr=tcp) (Create authenticated TCP connections with secure concatenation) [failed] runtime 2.220s ... 2.217sost: nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349 --- tests/nvme/063.out 2025-11-02 02:47:38.826227836 -0500 +++ /root/blktests/results/nodev_tr_tcp/nvme/063.out.bad 2025-11-02 08:43:09.743150576 -0500 @@ -1,7 +1,3 @@ Running nvme/063 Test secure concatenation with SHA256 -Reset controller -disconnected 1 controller(s) -Test secure concatenation with SHA384 -disconnected 1 controller(s) -Test complete ... (Run 'diff -u tests/nvme/063.out /root/blktests/results/nodev_tr_tcp/nvme/063.out.bad' to see the entire diff) Link: #207 Signed-off-by: Yi Zhang <[email protected]>
1 parent 9f0b5f2 commit 361ad31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/nvme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ _cleanup_nvmet() {
196196
for ns in "${subsys}"/namespaces/*; do
197197
rmdir "${ns}"
198198
done
199+
for allowed_host in "${subsys}"/allowed_hosts/*; do
200+
rm -f $allowed_host
201+
done
199202
rmdir "${subsys}"
200203
done
201204

0 commit comments

Comments
 (0)