Re: Fwd: Btrfs compression

2010-05-01 Thread Roberto Ragusa
Matt McCutchen wrote: > - Filenames with newlines will get mangled. > > - Hard links will be broken. > > - If a file is changed while the script is working on it, it may be > clobbered with the old contents. Similarly, if it is moved, it may > reappear in the old location. - Timestamps on dire

Re: Fwd: Btrfs compression

2010-04-30 Thread Matt McCutchen
On Sat, 2010-05-01 at 05:32 +0200, Kevin Kofler wrote: > 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? "cp --preserve=all" is needed to preserve SELinux context and extend

Re: Fwd: Btrfs compression

2010-04-30 Thread Kevin Kofler
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

Re: Fwd: Btrfs compression

2010-04-30 Thread Adam Jackson
On Fri, 2010-04-30 at 07:43 +0200, Valent Turkovic wrote: > How to recompress data already on btrfs partition? find / -xdev -type f | while read i; do cp $i /tmp/tmp rm $i mv /tmp/tmp $i done Obviously, don't actually run that. - ajax signature.asc Description: This is a digitally

Fwd: Btrfs compression

2010-04-29 Thread Valent Turkovic
How to recompress data already on btrfs partition? Cheers. -- Forwarded message -- From: Valent Turkovic Date: Thursday, April 29, 2010 Subject: Btrfs compression To: Community support for Fedora users Hi, AFAIK btrfs compression is enabled via mount option. I'm now installing