From: Hannes Reinecke Date: Fri, 19 Nov 2021 12:23:34 +0000 (+0100) Subject: nvme/rc: clear allowed_hosts subdirectory X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e7e80b0cf97ae769bfcadec202b34a9fe8cb5c03;p=users%2Fhch%2Fblktests.git nvme/rc: clear allowed_hosts subdirectory When removing a subsystem we need to clear out the allowed_hosts subdirectory, otherwise removal will fail. Signed-off-by: Hannes Reinecke Reviewed-by: Sagi Grimberg --- diff --git a/tests/nvme/rc b/tests/nvme/rc index 0248189..6a531f3 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -290,6 +290,7 @@ _remove_nvmet_subsystem() { local subsys_path="${NVMET_CFS}/subsystems/${nvmet_subsystem}" _remove_nvmet_ns "${nvmet_subsystem}" "1" + rm -f "${subsys_path}"/allowed_hosts/* rmdir "${subsys_path}" }