Skip to content

Commit f2113eb

Browse files
pibrochswhiteho
authored andcommitted
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>
1 parent b50f227 commit f2113eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/gfs2/acl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type)
8686
BUG_ON(name == NULL);
8787

8888
if (acl->a_count > GFS2_ACL_MAX_ENTRIES)
89-
return -EINVAL;
89+
return -E2BIG;
9090

9191
if (type == ACL_TYPE_ACCESS) {
9292
umode_t mode = inode->i_mode;

0 commit comments

Comments
 (0)