mirror_ubuntu-kernels/tools/testing/selftests/mount_setattr
Christian Brauner c2e757b223 tests: fix idmapped mount_setattr test
BugLink: https://bugs.launchpad.net/bugs/1963890

commit d1c56bfdac upstream.

The test treated zero as a successful run when it really should treat
non-zero as a successful run. A mount's idmapping can't change once it
has been attached to the filesystem.

Link: https://lore.kernel.org/r/20220203131411.3093040-2-brauner@kernel.org
Fixes: 01eadc8dd9 ("tests: add mount_setattr() selftests")
Cc: Seth Forshee <seth.forshee@digitalocean.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-07 11:44:18 +01:00
..
.gitignore
config
Makefile
mount_setattr_test.c tests: fix idmapped mount_setattr test 2022-03-07 11:44:18 +01:00