zfs-discuss@opensolaris.org
[Top] [All Lists]

Re: [zfs-discuss] Much room for improvement for "zfs destroy -r" ...

Subject: Re: [zfs-discuss] Much room for improvement for "zfs destroy -r" ...
From:
Date: Sat, 18 Apr 2009 12:47:01 +0200
>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@xxxxxxxxxxxxxxx
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

<Prev in Thread] Current Thread [Next in Thread>