Module mountcompat

Module mountcompat 

Source
Expand description

Compatibility helpers for older Linux kernel mount APIs.

This module provides fallback implementations for mount operations on kernels that don’t support the modern mount API, including loopback device setup and temporary mount handling.

Modules§

loopback 🔒
Required before 6.12: erofs can’t directly mount files.
tmpmount 🔒

Functions§

make_erofs_mountable
Prepares an open erofs image file for mounting.
overlayfs_set_fd
Sets one of the “dir” mount options on an overlayfs to the given file descriptor.
overlayfs_set_lower_and_data_fds
Sets the “lowerdir+” and “datadir+” mount options of an overlayfs mount to the provided file descriptors.
prepare_mount
Prepares a mounted filesystem for further use.