Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jie Liu and committed by
Steven Whitehouse
f2113eb8 b50f227b

+1 -1
+1 -1
fs/gfs2/acl.c
··· 86 86 BUG_ON(name == NULL); 87 87 88 88 if (acl->a_count > GFS2_ACL_MAX_ENTRIES) 89 - return -EINVAL; 89 + return -E2BIG; 90 90 91 91 if (type == ACL_TYPE_ACCESS) { 92 92 umode_t mode = inode->i_mode;