Re: chattr and ext2 extended attributes

From: Ville Herva (vherva@mail.niksula.cs.hut.fi)
Date: Wed Jul 19 2000 - 06:34:08 EST


On Wed, Jul 19, 2000 at 01:12:18PM +0200, you [Ookhoi] claimed:
> Hi Andreas,
>
> > to do this for a recent kernel, I'm not sure. As for e2compr, I think
> > code is slowly making its way into the mainstream - e2fsprogs is now
> > starting to have support for it...
                                                                                
Sadly, AFAIK nobody is doing e2compr port to 2.3/2.4. The 2.2 e2compr is
very stable and very usable (that's at least my experience.) There was a
race that showed up when using samba, but that also fixed now (thanks to
Peter Moulder).
                                                                                
The e2compr support in e2fsprogs is still a separate patch, available at
the same place as the e2compr kernel patch.
                                                                                
> If it works, then you can just take a huge textfile and it will be
> compressed immediately if you put the c flag on it? Or do you have to
> read/write it afterwards, or do you even have to start with a touch
> file?
                                                                                
The file is compressed right after you do 'chattr -c file'. It then
remains compressed until you do 'chattr -c file' - even when you modify
the file.
                                                                                
You can also chattr +c a dir, and all the files created into the dir will
then be compressed.
                                                                          
 
-- v --

v@iki.fi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:12 EST