]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add option to override fs-type with mount-type
authorKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2025 12:02:11 +0000 (13:02 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2025 12:02:11 +0000 (13:02 +0100)
commitfdac580358e7a1f7ab9fa2b0e330247872fa6979
tree2dcc5644482647e3a345411e8284a5f4f1c97c89
parent8bdc2546d38979ca65fa9bfd1bbd6e7b985c69db
libmount: add option to override fs-type with mount-type

This patch introduces an internal libmount method to convert fs-type
(as provided by libblkid or udevd) to mount-type to specify a different
mount driver.

Currently, the mapping from fs-type to mount-type is hardcoded in
libmount as a temporary solution. The final implementation should
provide configuration files (e.g., /etc/mount/fs.d/<name>) for these
mappings.

The current default mapping is implemented only for NTFS. It can be
modified during compilation with:

 ./configure --with-ntfs-mounttype=TYPE
or
 meson setup build -D ntfs-mounttype=TYPE

The default is "ntfs3".

Addresses: https://github.com/util-linux/util-linux/pull/3618
Addresses: https://github.com/systemd/systemd/pull/39982
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
libmount/src/context.c
libmount/src/context_umount.c
libmount/src/mountP.h
libmount/src/utils.c
meson.build
meson_options.txt