]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
vfs/idmapped_mounts.c: Change mount_setattr expected output
authorTaylor Jackson <tjackson9431@gmail.com>
Tue, 26 Mar 2024 20:33:52 +0000 (20:33 +0000)
committerZorro Lang <zlang@kernel.org>
Wed, 27 Mar 2024 14:05:18 +0000 (22:05 +0800)
commit9e760cfa976bafbe51608650ea08257e4e8bae9a
tree85149c2cebb3bd0ebe6c5d8caf50faf3b9eb9002
parentc4d6d42f2109a8447796436d7d1ba4e3fa5256b3
vfs/idmapped_mounts.c: Change mount_setattr expected output

In kernel commit dacfd001eaf2 (“fs/mnt_idmapping.c: Return -EINVAL
when no map is written”), the behavior of mount_setattr changed to
return EINVAL when attempting to create an idmapped mount when using
a user namespace with no mappings. The following commit updates the test
to expect no mount to be created in that case. And since no mount is created,
this commit also removes the check for overflow IDs because it does not make
sense to check for overflow IDs for a mount that was not created.

Signed-off-by: Taylor Jackson <tjackson9431@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/vfs/idmapped-mounts.c