]> git.ipfire.org Git - thirdparty/systemd.git/commit
mountpoint-util: Check hardcoded list before asking kernel if option is supported
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Oct 2023 10:49:07 +0000 (12:49 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Oct 2023 14:50:30 +0000 (16:50 +0200)
commitd852352b9c5d4b5b2c6f62bf0d103c54f0d7b744
treec589546f684a5634b7367fc28cc89f87e665c66e
parentc6711da087f6c87677cfe9606afec56d3c1d1a95
mountpoint-util: Check hardcoded list before asking kernel if option is supported

mount_option_supported() will call fsopen() which will probe the
kernel filesystem module. This means that we'll suddenly start
probing filesystem modules when running generators as those determine
which mount options to use. To prevent generators from loading kernel
filesystem modules as much as possible, let's always first check the
hardcoded list of filesystem which we know support a feature before
falling back to asking the kernel.
src/basic/mountpoint-util.c