Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2017 22:15:46 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326863 - head/tests/sys/geom/class/mirror
Message-ID:  <201712142215.vBEMFk5G014079@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Dec 14 22:15:46 2017
New Revision: 326863
URL: https://svnweb.freebsd.org/changeset/base/326863

Log:
  Belatedly add syncwait.
  
  X-MFC with:	r326861

Modified:
  head/tests/sys/geom/class/mirror/conf.sh

Modified: head/tests/sys/geom/class/mirror/conf.sh
==============================================================================
--- head/tests/sys/geom/class/mirror/conf.sh	Thu Dec 14 22:14:07 2017	(r326862)
+++ head/tests/sys/geom/class/mirror/conf.sh	Thu Dec 14 22:15:46 2017	(r326863)
@@ -12,4 +12,11 @@ gmirror_test_cleanup()
 }
 trap gmirror_test_cleanup ABRT EXIT INT TERM
 
+syncwait()
+{
+	while $(gmirror status -s $name | grep -q SYNCHRONIZING); do
+		sleep 0.1;
+	done
+}
+
 . `dirname $0`/../geom_subr.sh



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