Re: Compression on Btrfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux