On Wed, Jan 23, 2008 at 12:56:16PM -0800, Richard Elling wrote: > This is pretty trivial to code in a script. Here is a ksh function > I use for testing resilvering performance. > > function wait_for_resilver { > date > while zpool status $POOLNAME | grep "resilver in progress" > do sleep 10 > date > done > }
Doh! I should've thought of this one. It's a decent-enough hackaround. > For your case, a longer sleep and fewer dates would make > good sense. You probably want to redirect the grep output or > use the -q flag for grep (caveat: I don't know which grep you > prefer to use, so check the flags for your version) /usr/xpg4/bin/grep has -q, that's easy enough to code-in, as we do that for punchctl already. Thanks! Dan _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss