Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configurable compression algorithm for btrfs-defrag #86

Open
yitzhaq opened this issue Sep 22, 2020 · 1 comment
Open

Allow configurable compression algorithm for btrfs-defrag #86

yitzhaq opened this issue Sep 22, 2020 · 1 comment

Comments

@yitzhaq
Copy link

yitzhaq commented Sep 22, 2020

From the btrfs-filesystem man page, defrag section:

-c[<algo>]
    compress file contents while defragmenting. Optional argument selects the compression algorithm, zlib (default), lzo or zstd. Currently it’s not possible to select no compression. See also section EXAMPLES.

I read this as meaning that, when defragging, compression will always be applied. Since there currently is no way in btrfsmaintenance to specify a value option or a corresponding value, zlib is used, which may not be desirable. It would be great if this was a configurable option in the defaults file, so you could select e.g. zstd.

@boniek83
Copy link

This is surprising. I wouldn't expect that defrag will change my compression settings. Default should be whatever is set in fstab. I was expecting this to be the case.

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

No branches or pull requests

3 participants