Skip to content

feat(btrfs): add compression scheme selection for subvolumes - #4673

Open
Erox-02 wants to merge 1 commit into
archlinux:masterfrom
Erox-02:master
Open

feat(btrfs): add compression scheme selection for subvolumes#4673
Erox-02 wants to merge 1 commit into
archlinux:masterfrom
Erox-02:master

Conversation

@Erox-02

@Erox-02 Erox-02 commented Jul 26, 2026

Copy link
Copy Markdown

Add ability to choose compression scheme for BTRFS subvolumes

What this PR does

Adds user-selectable compression for BTRFS subvolumes during installation.

  • Adds BtrfsCompression enum with lzo and zstd:1-19 options
  • Adds compression selection menu to subvolume creation UI
  • Compression saved per-subvolume and applied during creation
  • JSON config supports compression field

Currently users can't choose compression algorithm (hardcoded to zstd:3).
Different use cases need different balances of speed vs compression.

Testing

  • Interactive installation with compression selection
  • JSON config with compression values
  • Verified mount options and chattr +c applied
  • Backward compatibility tested

#2681 fixed
issue closed

@Erox-02
Erox-02 requested a review from Torxed as a code owner July 26, 2026 15:56
@Erox-02

Erox-02 commented Jul 26, 2026

Copy link
Copy Markdown
Author
archinstall

@svartkanin

Copy link
Copy Markdown
Collaborator

You changed the formatting of the edited files can you please revert that

@Erox-02

Erox-02 commented Jul 27, 2026

Copy link
Copy Markdown
Author

Ok i shall patch it by tomorrow

@Erox-02

Erox-02 commented Jul 27, 2026

Copy link
Copy Markdown
Author

@svartkanin PR ready for review. All merge conflicts resolved - kept master's formatting/arch changes and my BtrfsCompression changes. Tested and working. Thanks!

@svartkanin

Copy link
Copy Markdown
Collaborator

Please remove the AI comments. I'll not spent time reviewing code that you have not reviewed yourself.

@Erox-02

Erox-02 commented Jul 28, 2026

Copy link
Copy Markdown
Author

@svartkanin I've rechecked my code , updated to newest merge and removed the comments , ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants