]> www.infradead.org Git - users/hch/blktests.git/commitdiff
nvme/rc: clear allowed_hosts subdirectory
authorHannes Reinecke <hare@suse.de>
Fri, 19 Nov 2021 12:23:34 +0000 (13:23 +0100)
committerHannes Reinecke <hare@suse.com>
Wed, 20 Jul 2022 13:22:42 +0000 (15:22 +0200)
When removing a subsystem we need to clear out the allowed_hosts
subdirectory, otherwise removal will fail.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
tests/nvme/rc

index 02481894eb8e7acf73d8496e7bd4a7a28b36e5af..6a531f39f30ddc0808add96669f1a9b2b79a0f5a 100644 (file)
@@ -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}"
 }