HomeFreeBSD

Linux 5.12 compat: idmapped mounts

Description

Linux 5.12 compat: idmapped mounts

In Linux 5.12, the filesystem API was modified to support ipmapped
mounts by adding a "struct user_namespace *" parameter to a number
functions and VFS handlers. This change adds the needed autoconf
macros to detect the new interfaces and updates the code appropriately.
This change does not add support for idmapped mounts, instead it
preserves the existing behavior by passing the initial user namespace
where needed. A subsequent commit will be required to add support
for idmapped mounted.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #11712

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Mar 20 2021, 4:00 AM
GitHub <noreply@github.com>Committed on Mar 20 2021, 4:00 AM
Parents
rG330c6c052314: Clean up RAIDZ/DRAID ereport code
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGe2a8296131e9: Linux 5.12 compat: idmapped mounts (authored by Coleman Kane <ckane@colemankane.org>).Mar 20 2021, 4:00 AM