You are not logged in.

#1 2022-03-14 07:21:58

Iizuki
Member
Registered: 2020-09-07
Posts: 4

[Solved] Udisks2 mount BTRFS filesystems with compress=zstd by default

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=zstd

Unfortunately it doesn't seem to have any effect. Any help would be appreciated.

Last edited by Iizuki (2022-07-18 07:52:18)

Offline

#2 2022-03-14 08:21:29

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Udisks2 mount BTRFS filesystems with compress=zstd by default

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-05-18 16:05:47

tuxg0d
Member
Registered: 2019-08-30
Posts: 2

Re: [Solved] Udisks2 mount BTRFS filesystems with compress=zstd by default

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

#4 2022-07-18 07:51:53

Iizuki
Member
Registered: 2020-09-07
Posts: 4

Re: [Solved] Udisks2 mount BTRFS filesystems with compress=zstd by default

Yes that did it, thank you.

For completeness, here's the documentation about this: http://storaged.org/doc/udisks2-api/lat … tions.html

Offline

Board footer

Powered by FluxBB