I'm trying to keep a bunch of plain text files compressed using the extended attribute option - c on a debian ppc64 system. I ran the following commands:
# mkfs.ext4 /dev/test/compressed # mount /dev/test/compressed /mnt/compressed/ # mkdir /mnt/compressed/some/txts/ # chattr +c /mnt/compressed/some/txts/ # df -l # cp /some/txts/* /mnt/compressed/some/txts/ # sync # df -l To my surprise, the output of df -l tells me the files I copied weren't compressed at all. I also tried to mount the test file system with the option user_xattr and I tried creating it with mkfs.ext4dev, but neither worked. I also checked the output of the commands lsattr /mnt/compressed/some/txts/; every line has a c in it.
Did I miss something? How come the xattr option c doesn't work as expected?