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" _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"