GFS2: return -E2BIG if hit the maximum limits of ACLs
authorJie Liu <jeff.liu@oracle.com>
Tue, 4 Mar 2014 03:28:39 +0000 (11:28 +0800)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 6 Mar 2014 10:39:32 +0000 (10:39 +0000)
commitf2113eb8a4ede4016199492f3e10f5a165b04fcd
tree262e21fa5d70775d4d72755ccd824b3c906bd4ed
parentb50f227bddf110ae4ea2df1ebdf7e282ad481803
GFS2: return -E2BIG if hit the maximum limits of ACLs

Return -E2BIG rather than -EINVAL if hit the maximum size limits of
ACLs, as the former errno is consistent with VFS xattr syscalls.

This is pointed out by Dave Chinner in previous discussion thread:
http://www.spinics.net/lists/linux-fsdevel/msg71125.html

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/acl.c