Re: Selective Compression/Encryption

Linda Knippers
2008-12-10T18:02:56Z

Christoph Hellwig wrote:
> On Wed, Dec 10, 2008 at 08:44:47AM -0500, Chris Mason wrote:
>> I had planned to make the bits inheritable from the directory inode
>> flags. There are two different discussions around xattrs for this. One
>> is using xattrs to store the flag, which I'd would rather avoid because
>> it is checked in some performance critical places.
>>
>> The second is using xattr programs to set the flag, which I don't really
>> have an opinion on. The idea of having the flags backed up by backup
>> programs or rsync is really nice, but do any of the backup programs
>> actually copy out all the xattrs?
>
> xfsdump does :) But I think especially the compressed bit is much
> better off in the bit for the set/get flags ioctls used by chattr /
> lsattr. These are implemented by all Linux filesystems, and even have
> a compressed bit allocated already. (and xfsdump of course backs them
> up, too ;-)) *run*

The 'star' command has an -xattr option.

-- ljk