]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/attr: fix the _require_acl test
authorJeff Layton <jlayton@kernel.org>
Wed, 30 Aug 2023 10:58:50 +0000 (06:58 -0400)
committerZorro Lang <zlang@kernel.org>
Sat, 2 Sep 2023 05:54:38 +0000 (13:54 +0800)
commit6bf1570d33ccba99507dcfc96c2ddd23723f8568
tree8e9b9fd8c73bb09bebb77e5bd8a311cad7b02763
parent7a2663730e69799dd1f29a345b3be256b53f9120
common/attr: fix the _require_acl test

_require_acl tests whether you're able to fetch the ACL from a file
using chacl, and then tests for an -EOPNOTSUPP error return.
Unfortunately, filesystems that don't support them (like NFSv4) just
return -ENODATA when someone calls getxattr for the POSIX ACL, so the
test doesn't work.

Fix the test to have chacl set an ACL on the file instead, which should
reliably fail on filesystems that don't support them.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/attr