diff options
author | Jie Liu <jeff.liu@oracle.com> | 2014-03-03 22:28:39 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-03-06 05:39:32 -0500 |
commit | f2113eb8a4ede4016199492f3e10f5a165b04fcd (patch) | |
tree | 262e21fa5d70775d4d72755ccd824b3c906bd4ed /fs/gfs2 | |
parent | b50f227bddf110ae4ea2df1ebdf7e282ad481803 (diff) |
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c index ba9456685f47..9c59ebe790b6 100644 --- a/fs/gfs2/acl.c +++ b/fs/gfs2/acl.c | |||
@@ -86,7 +86,7 @@ int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) | |||
86 | BUG_ON(name == NULL); | 86 | BUG_ON(name == NULL); |
87 | 87 | ||
88 | if (acl->a_count > GFS2_ACL_MAX_ENTRIES) | 88 | if (acl->a_count > GFS2_ACL_MAX_ENTRIES) |
89 | return -EINVAL; | 89 | return -E2BIG; |
90 | 90 | ||
91 | if (type == ACL_TYPE_ACCESS) { | 91 | if (type == ACL_TYPE_ACCESS) { |
92 | umode_t mode = inode->i_mode; | 92 | umode_t mode = inode->i_mode; |