]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
idmapped-mounts: account for EOVERFLOW
authorChristian Brauner <brauner@kernel.org>
Tue, 20 Sep 2022 08:35:22 +0000 (10:35 +0200)
committerZorro Lang <zlang@kernel.org>
Wed, 21 Sep 2022 01:40:22 +0000 (09:40 +0800)
commit7c7a73c43be8e41a324eed01e3f5aa69860b0ddf
treea3c0fc4baa015db98a24b4ededffd1d7a2dfb0d4
parente635c29e187db03735fc867d930f50ad0530d2b7
idmapped-mounts: account for EOVERFLOW

We introduced a new type vfs{g,u}id_t into the vfs in b27c82e12965
("attr: port attribute changes to new types"). This type makes sure that
{g,u}ids mapped into an idmapped mount are distinct from regular
k{g,u}id_t. This expands the possible errnos that users may see so we
need to handle both EINVAL and EOVERFLOW.

Cc: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/vfs/idmapped-mounts.c