Belatedly add syncwait.

X-MFC with:	r326861
This commit is contained in:
Mark Johnston 2017-12-14 22:15:46 +00:00
parent 504eda2021
commit 21274cad33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326863

View File

@ -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