<p dir="ltr">Depending on the situation, it might be faster to backup and reformat.  :-)</p>
<p dir="ltr">Liam</p>
<div class="gmail_quote">On Jun 12, 2013 2:59 PM, &quot;Pablo&quot; &lt;<a href="mailto:paa.listas@gmail.com">paa.listas@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 I agree with what you say :)<br>
<br>
El 12/06/2013 04:45 p.m., Stephan von Krawczynski escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 12 Jun 2013 14:55:23 -0300<br>
Pablo &lt;<a href="mailto:paa.listas@gmail.com" target="_blank">paa.listas@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So combining the two approaches I think that this may be a better solution?<br>
<br>
tempdirname=`mktemp -d`<br>
mv &lt;dir&gt; $tempdirname<br>
mkdir &lt;dir&gt;<br>
<br>
# rm -rf &lt;tempdirname&gt;<br>
mkdir empty<br>
rsync -a --delete empty/ $tempdirname<br>
rmdir empty $tempdirname<br>
<br>
<br>
<br>
Regards,<br>
Pablo.<br>
</blockquote>
Ok, this is a heavy misinterpretation of my true intention.<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I did _not_ intend to delete particularly fast, the sole idea of mv &amp; mkdir<br>
was to come up with the same but empty dir for _users_ as fast as possible.<br>
And only _then_ throw away the old, probably unneeded original content.<br>
So I thought the basic admin idea was to give the user as fast as possible<br>
what he wants (empty dir) and deal with the rest cleanup later on.<br>
</blockquote>
This were what I were trying to said above. :)  Sorry, my english is very limited :(<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And that&#39;s why I named it an admin question. Do something to make the user<br>
happy, but indeed something completely different than what the user thought<br>
was going on.<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And whatever idea you come up, you will not have your dir as<br>
fast empty shown to the user as me with mv&amp;mkdir :-)<br>
</blockquote>
Yes, that is why i try to combine both.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And btw, this is exactly what I do suggest for delete/undelete implementation:<br>
move the deleted something to a shadow dir where content is expelled based on<br>
its age iff the real world tree needs more space.<br>
</blockquote>
I agree with this also.<br>
<br>
<br>
Regards,<br>
:)<br>
<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</blockquote></div>