You are not logged in.
I would like udisks to mount external BTRFS filesystems with option compress=zstd by default. Namely, when I plug a drive to an USB, and Plasma prompts me to mount it.
I've been trying to achieve this by editing /etc/udisks2/udisks2.conf. Here's my best attempt (last line):
# Comma separated list of modules to load.
# Use asterisk to load all the modules.
modules=*
# Valid options are 'ondemand' or 'onstartup'.
modules_load_preference=ondemand
[defaults]
# Valid options are 'luks1' or 'luks2'
encryption=luks2
btrfs_defaults=compress=zstdUnfortunately it doesn't seem to have any effect. Any help would be appreciated.
Last edited by Iizuki (2022-07-18 07:52:18)
Offline
Udisks doesn't support this. You can't expect to be able to add random undefined lines to the config file and have them do anything.
You'll just have to mount the drives manually if you want to use compression.
Offline
Fedora user dropping by. It does support it, you're just putting it in the wrong file.
/etc/udisks2/mount_options.conf
Example:
[defaults]
btrfs_defaults=rw,noatime,compress=zstd
Source:
https://askubuntu.com/questions/289696/ … on-kubuntu
Last edited by tuxg0d (2022-05-18 16:07:05)
Offline
Yes that did it, thank you.
For completeness, here's the documentation about this: http://storaged.org/doc/udisks2-api/lat … tions.html
Offline