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
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
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
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
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