* [PATCH blktests] nvmeof-mp/rc: fix nvmeof-mp failure when NVME_TARGET_PASSTHRU enabled
@ 2021-01-24 5:26 Yi Zhang
2021-01-24 16:39 ` Bart Van Assche
2021-01-25 18:45 ` Omar Sandoval
0 siblings, 2 replies; 3+ messages in thread
From: Yi Zhang @ 2021-01-24 5:26 UTC (permalink / raw)
To: osandov, bvanassche; +Cc: linux-block
$ ./check nvmeof-mp/001
nvmeof-mp/001 (Log in and log out) [passed]
runtime 0.400s ... 0.457s
rmdir: failed to remove 'subsystems/nvme-test/passthru/admin_timeout': Not a directory
rmdir: failed to remove 'subsystems/nvme-test/passthru/device_path': Not a directory
rmdir: failed to remove 'subsystems/nvme-test/passthru/enable': Not a directory
rmdir: failed to remove 'subsystems/nvme-test/passthru/io_timeout': Not a directory
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
---
tests/nvmeof-mp/rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/nvmeof-mp/rc b/tests/nvmeof-mp/rc
index c77526f..ab7770f 100755
--- a/tests/nvmeof-mp/rc
+++ b/tests/nvmeof-mp/rc
@@ -265,8 +265,8 @@ stop_nvme_target() {
rm -f -- ports/*/subsystems/* &&
for d in {*/*/*/*,*/*}; do
[ -e "$d" ] &&
- [ "$(basename "$(dirname "$d")")" != ana_groups ] &&
- rmdir "$d"
+ [[ ! "$(basename "$(dirname "$d")")" =~ ana_groups|passthru ]] &&
+ rmdir "$d"
done
)
unload_module nvmet_rdma &&
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH blktests] nvmeof-mp/rc: fix nvmeof-mp failure when NVME_TARGET_PASSTHRU enabled
2021-01-24 5:26 [PATCH blktests] nvmeof-mp/rc: fix nvmeof-mp failure when NVME_TARGET_PASSTHRU enabled Yi Zhang
@ 2021-01-24 16:39 ` Bart Van Assche
2021-01-25 18:45 ` Omar Sandoval
1 sibling, 0 replies; 3+ messages in thread
From: Bart Van Assche @ 2021-01-24 16:39 UTC (permalink / raw)
To: Yi Zhang, osandov; +Cc: linux-block
On 1/23/21 9:26 PM, Yi Zhang wrote:
> $ ./check nvmeof-mp/001
> nvmeof-mp/001 (Log in and log out) [passed]
> runtime 0.400s ... 0.457s
> rmdir: failed to remove 'subsystems/nvme-test/passthru/admin_timeout': Not a directory
> rmdir: failed to remove 'subsystems/nvme-test/passthru/device_path': Not a directory
> rmdir: failed to remove 'subsystems/nvme-test/passthru/enable': Not a directory
> rmdir: failed to remove 'subsystems/nvme-test/passthru/io_timeout': Not a directory
>
> Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
> ---
> tests/nvmeof-mp/rc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/nvmeof-mp/rc b/tests/nvmeof-mp/rc
> index c77526f..ab7770f 100755
> --- a/tests/nvmeof-mp/rc
> +++ b/tests/nvmeof-mp/rc
> @@ -265,8 +265,8 @@ stop_nvme_target() {
> rm -f -- ports/*/subsystems/* &&
> for d in {*/*/*/*,*/*}; do
> [ -e "$d" ] &&
> - [ "$(basename "$(dirname "$d")")" != ana_groups ] &&
> - rmdir "$d"
> + [[ ! "$(basename "$(dirname "$d")")" =~ ana_groups|passthru ]] &&
> + rmdir "$d"
> done
> )
> unload_module nvmet_rdma &&
>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH blktests] nvmeof-mp/rc: fix nvmeof-mp failure when NVME_TARGET_PASSTHRU enabled
2021-01-24 5:26 [PATCH blktests] nvmeof-mp/rc: fix nvmeof-mp failure when NVME_TARGET_PASSTHRU enabled Yi Zhang
2021-01-24 16:39 ` Bart Van Assche
@ 2021-01-25 18:45 ` Omar Sandoval
1 sibling, 0 replies; 3+ messages in thread
From: Omar Sandoval @ 2021-01-25 18:45 UTC (permalink / raw)
To: Yi Zhang; +Cc: osandov, bvanassche, linux-block
On Sun, Jan 24, 2021 at 01:26:44PM +0800, Yi Zhang wrote:
> $ ./check nvmeof-mp/001
> nvmeof-mp/001 (Log in and log out) [passed]
> runtime 0.400s ... 0.457s
> rmdir: failed to remove 'subsystems/nvme-test/passthru/admin_timeout': Not a directory
> rmdir: failed to remove 'subsystems/nvme-test/passthru/device_path': Not a directory
> rmdir: failed to remove 'subsystems/nvme-test/passthru/enable': Not a directory
> rmdir: failed to remove 'subsystems/nvme-test/passthru/io_timeout': Not a directory
>
> Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
Thanks, applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-25 18:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 5:26 [PATCH blktests] nvmeof-mp/rc: fix nvmeof-mp failure when NVME_TARGET_PASSTHRU enabled Yi Zhang
2021-01-24 16:39 ` Bart Van Assche
2021-01-25 18:45 ` Omar Sandoval
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.