]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
nfs: test nfs4_getfacl near page size ACL from server
authorEryu Guan <eguan@redhat.com>
Tue, 16 May 2017 11:35:15 +0000 (19:35 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 26 May 2017 11:11:34 +0000 (19:11 +0800)
commit16985be90e5ef064858439380206656d75d7ad58
tree28a99376218149502aaeed800aa39ddd64491f13
parentd0ef33ce972dd3dbb6e308dc9937e4dc88b768ff
nfs: test nfs4_getfacl near page size ACL from server

Test nfs4_getfacl gets ACL list correctly from server when the ACL
length is close enough to the end of a page. On buggy NFS client
getxattr could return ERANGE. Upstream commit ed92d8c137b7 ("NFSv4:
fix getacl ERANGE for some ACL buffer sizes") fixed this bug in 4.11
kernel.

Note that this reproducer was originally written by J. Bruce Fields.

Cc: J. Bruce Fields <bfields@redhat.com>
Cc: Weston Andros Adamson <dros@primarydata.com>
Cc: linux-nfs@vger.kernel.org
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/config
common/nfs [new file with mode: 0644]
common/rc
tests/nfs/001 [new file with mode: 0755]
tests/nfs/001.out [new file with mode: 0644]
tests/nfs/Makefile [new file with mode: 0644]
tests/nfs/group [new file with mode: 0644]