On Sat, Mar 21, 2015 at 06:56:12PM +0100, Petr Bena wrote:
> Hi, I like the compress feature, but unlike NTFS, compressing files in
> btrfs is not so simple. Just changing the flags using chattr will not
> compress anything, only newly written data would be.
> 
> For this reason I decided to create a new tool that makes this simple,
> you can find it here: https://github.com/benapetr/compress
> 
> It's very simple to use, for example to compress whole folder, you would do
> 
> compress -rv <folder_name>
> 
> the tool would recursively scan the folder, change all folders to +c
> and copy all files, preserving attributes to a temporary file within
> folder, then removes the original and move the copied, now fully
> compressed file back.

   What does it do that this doesn't?

$ chattr -R +c $dir
$ btrfs fi defrag -r -c $dir

   (Sorry to do this to you, but better early in the life of the
project than later).

   Hugo.

> It's written in python despite I loathe it (I am a C++ programmer),
> because most of people love it for some reason, any because this would
> make it more simple for people to deploy it and modify it.
> 
> The tool right now is in early alpha stage, probably full of bugs, I
> made it few hours ago, but I would like to hear any feedback, whether
> there would be any use for such a tool, feature requests etc :)

-- 
Hugo Mills             | You shouldn't anthropomorphise computers. They
hugo@... carfax.org.uk | really don't like that.
http://carfax.org.uk/  |
PGP: 65E74AC0          |

Attachment: signature.asc
Description: Digital signature

Reply via email to