>On 04/17/09 21:19, Kyle McDonald wrote: > >> One reason is that you're not timing how long it takes for the destroy's >> to complete. You're only timing how long it takes to start all the jobs >> in the background. > >Right, I'm sorry, my example was an oversimplification of a script I made. >That script included a wait after the for-loop. The same example again: > > # date ; for i in `zfs list | awk '/blub2\\// {print $1}'` ; \ > do ( zfs destroy $i & ) ; done ; wait ; date
That still doesn't wait for zfs destroy. Zfs destroy is run in a sub-shell "()" and you wait for that sub-shell but not for its children. Casper _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss