svn commit: r326863 - head/tests/sys/geom/class/mirror

Mark Johnston markj at FreeBSD.org
Thu Dec 14 22:15:47 UTC 2017


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


More information about the svn-src-head mailing list