Fwd: Btrfs compression

Kevin Kofler kevin.kofler at chello.at
Sat May 1 03:32:58 UTC 2010

Adam Jackson wrote:
> find / -xdev -type f | while read i; do
>     cp $i /tmp/tmp
>     rm $i
>     mv /tmp/tmp $i
> done

I presume that cp should be cp -p? And I guess it would be better to do a mv 
-f rather than rm + mv, otherwise you're going to have trouble when you hit 
/bin/mv. :-) And of course this needs to run as root.

> Obviously, don't actually run that.

Well, are there any other caveats than the ones I listed above?

        Kevin Kofler

More information about the devel mailing list