Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2019 15:48:28 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353310 - head/tests/sys/cddl/zfs/tests/zfsd
Message-ID:  <201910081548.x98FmSdG078751@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Tue Oct  8 15:48:28 2019
New Revision: 353310
URL: https://svnweb.freebsd.org/changeset/base/353310

Log:
  zfs: fix the zfsd_hotspare_007_pos test
  
  It was trying to destroy the pool while zfsd was detaching the spare, and
  "zpool destroy" failed.  Fix by waiting until the spare has fully detached.
  
  MFC after:	2 weeks
  Sponsored by:	Axcient

Modified:
  head/tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_007_pos.ksh

Modified: head/tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_007_pos.ksh
==============================================================================
--- head/tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_007_pos.ksh	Tue Oct  8 15:33:11 2019	(r353309)
+++ head/tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_007_pos.ksh	Tue Oct  8 15:48:28 2019	(r353310)
@@ -82,6 +82,9 @@ function verify_assertion # spare_dev
 
 	# Re-enable the  missing disk
 	log_must create_gnop $REMOVAL_DISK $PHYSPATH
+
+	# And now the spare should be released
+	wait_for_pool_dev_state_change 20 $spare_dev AVAIL
 }
 
 typeset PHYSPATH="some_physical_path"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910081548.x98FmSdG078751>