On 10/27/25 10:39 PM, Chris Murphy wrote:
On Fri, Oct 24, 2025, at 5:52 PM, Samuel Sieb wrote:

Compression is easy to remove.  Just remove the ",compress=zstd:1" part
of the entry in the /etc/fstab file.  It's not retroactive though, so
any files that are already compressed will stay that way until
rewritten.  It's also per subvolume, so if it's only your /home files
that you're concerned about, you can leave compression on for /.
Although given your earlier actions, /home might actually be part of /
now instead of being a separate subvolume.


Sorry, but it's confusing. Some options are VFS, others are file system 
specific. The VFS options aren't Btrfs options at all, but look like they're 
per subvolume because subvolume mounts are really bind mounts behind the scene. 
And separate bind mounts can have separate VFS mount options.

Compression is a Btrfs mount option and it applies only file system wide. It 
appears on every line in fstab as an artifact of the installer. The `/` line in 
fstab is unique in that it becomes a remount command. Everything else in fstab 
is either a new mount (other file systems) or additional bind mounts if it's 
the same Btrfs file system as `/` -

In effect, the compression option for other subvolumes of the same file system 
don't matter, have no effect, because they aren't remounts.
I must have misread the docs earlier, because it does seem clear now.
https://btrfs.readthedocs.io/en/latest/Compression.html#how-to-enable-compression
> Typically the compression can be enabled on the whole filesystem, specified for the mount point. Note that the compression mount options are shared among all mounts of the same filesystem, either bind mounts or subvolume mounts.

I don't know why they added the "typically", but it is clear that it applies to all the mounted subvolumes.

--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to