Skip to content

Commit 9897976

Browse files
authored
Merge pull request #213 from yizhanglinux/nvmet-configfs-clean-fix
common/nvme: remove allowed_hosts before remove subsys in nvmet configfs
2 parents a5cce66 + 5a1ed27 commit 9897976

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)