]> git.proxmox.com Git - mirror_zfs.git/commit
Support idmapped mount
authoryouzhongyang <youzhong@gmail.com>
Wed, 19 Oct 2022 18:17:09 +0000 (14:17 -0400)
committerGitHub <noreply@github.com>
Wed, 19 Oct 2022 18:17:09 +0000 (11:17 -0700)
commit2a068a1394d179dda4becf350e3afb4e8819675e
tree51890e4daf21593525f801d2889dfe82adbbe4bc
parenteaaed26ffb3a14c0c98ce1e6e039e62327ab4447
Support idmapped mount

Adds support for idmapped mounts.  Supported as of Linux 5.12 this
functionality allows user and group IDs to be remapped without changing
their state on disk.  This can be useful for portable home directories
and a variety of container related use cases.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #12923
Closes #13671
41 files changed:
config/kernel-idmap_mnt_api.m4 [new file with mode: 0644]
config/kernel.m4
include/os/freebsd/spl/sys/types.h
include/os/freebsd/zfs/sys/zfs_vnops_os.h
include/os/linux/spl/sys/cred.h
include/os/linux/spl/sys/types.h
include/os/linux/zfs/sys/policy.h
include/os/linux/zfs/sys/zfs_vnops_os.h
include/os/linux/zfs/sys/zpl.h
include/sys/zfs_acl.h
module/os/freebsd/zfs/zfs_acl.c
module/os/freebsd/zfs/zfs_dir.c
module/os/freebsd/zfs/zfs_vnops_os.c
module/os/freebsd/zfs/zfs_znode.c
module/os/linux/zfs/policy.c
module/os/linux/zfs/zfs_acl.c
module/os/linux/zfs/zfs_dir.c
module/os/linux/zfs/zfs_vnops_os.c
module/os/linux/zfs/zfs_znode.c
module/os/linux/zfs/zpl_ctldir.c
module/os/linux/zfs/zpl_file.c
module/os/linux/zfs/zpl_inode.c
module/os/linux/zfs/zpl_super.c
module/os/linux/zfs/zpl_xattr.c
module/zfs/zfs_replay.c
module/zfs/zfs_vnops.c
tests/runfiles/linux.run
tests/test-runner/bin/zts-report.py.in
tests/zfs-tests/cmd/.gitignore
tests/zfs-tests/cmd/Makefile.am
tests/zfs-tests/cmd/idmap_util.c [new file with mode: 0644]
tests/zfs-tests/include/commands.cfg
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/idmap_mount/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/idmap_mount/idmap_mount.cfg [new file with mode: 0644]
tests/zfs-tests/tests/functional/idmap_mount/idmap_mount_001.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/idmap_mount/idmap_mount_002.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/idmap_mount/idmap_mount_003.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/idmap_mount/idmap_mount_004.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/idmap_mount/idmap_mount_common.kshlib [new file with mode: 0644]
tests/zfs-tests/tests/functional/idmap_mount/setup.ksh [new file with mode: 0755]