On 2014-12-13 21:59, Ali AlipourR wrote:
AFAIK, it's the compression related mount options that don't work per-subvolume. Using chattr +c or btrfs properties should work (I don't know if btrfs properties are inherited by default though).Hi,1- Do setting compression flag per subvolume is implemented? (I did read on wiki that it is not implemented, but I can set it via "btrfs property")
These depend on many things. Using -A won't (barring bugs in rsync) affect anything set by either chattr or btrfs properties. Using -X MIGHT clear the btrfs properties, but I don't think it affects stuff set by chattr unless you are root (I know that it doesn't preserve immutability or append-only flags unless you are root). In both 2 and 3, I believe that the files will be uncompressed on the btrfs volume.2- If I set compression flag via "btrfs property" or "chattr" on a subvolume, and rsync files without compression flag from ext4 file system and preserve attributes by rsync -AX, do these files on that btrfs subvolume will be compressed? I mean do files will be compressed even if their compression flag wasn't set, and just their subvolume compression flag was set? 3- what if I do same as 2 but on normal folder instead of subvolume (chattr +c that folder), Do files within that folder will be compressed even if their compression flag wasn't set?
smime.p7s
Description: S/MIME Cryptographic Signature