On Thu, Jan 7, 2021 at 5:52 AM Patrick O'Callaghan <pocallaghan@xxxxxxxxx> wrote: > > I did the following: > > # btrfs filesystem defragment -czstd -r -v /home > > and changed the fstab entry: > > # grep /home /etc/fstab > UUID=8e1f7af4-c0bf-434e-b1c4-a9af2c810d56 /home btrfs subvol=home,discard=async,compress-force=zstd 0 0 > > (this is an SSD, hence the discard-async) > > I then rebooted, but find: > > # btrfs prop get -t i /home compression > # > (i.e. no output) The 'btrfs property' method of setting compression per file, directory, or subvolume, sets an xattr. The mount option method does not. Also, the mount option is file system wide, it's not per subvolume. It just seems like it could be this way due to fstab and the subvol mount option (which is really just a bind mount behind the scenes). > and the space usage doesn't seem to have changed. 'du' doesn't know about Btrfs compression, it's too transparent and so it sees everything as uncompressed. 'df' doesn't directly know about Btrfs compression, but it does report on free space which is affected by the fact that less space is being used due to compression. So it reports correctly. And the 'btrfs' command (btrfs-progs) doesn't yet have a compression specific reporting option. So yeah, compsize is what you're after. -- Chris Murphy _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx