mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-05 06:43:31 +03:00
ZTS: Retry export/destroy when busy in zpool_import_012
It can take a moment for the NFS server to give up the mountpoint after unsharing a filesystem. Use log_must_busy to retry export/destroy a few times after switching off sharenfs. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10380
This commit is contained in:
parent
70a5fc0530
commit
4f8b2356cc
@ -147,9 +147,9 @@ for option in "" "-Df"; do
|
|||||||
while ((guid_bit <= 1)); do
|
while ((guid_bit <= 1)); do
|
||||||
typeset guid_flag="pool name"
|
typeset guid_flag="pool name"
|
||||||
if [[ -z $option ]]; then
|
if [[ -z $option ]]; then
|
||||||
log_must zpool export $pool
|
log_must_busy zpool export $pool
|
||||||
else
|
else
|
||||||
log_must zpool destroy $pool
|
log_must_busy zpool destroy $pool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
typeset target=$pool
|
typeset target=$pool
|
||||||
|
Loading…
Reference in New Issue
Block a user