diff options
author | Jie Liu <jeff.liu@oracle.com> | 2014-02-06 23:26:11 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-02-06 23:26:11 -0500 |
commit | 4ae69fea588148360d470ce604714b6d619ea749 (patch) | |
tree | 4903bfcfe88296ee1ce49edb1f209f79d0b2620b | |
parent | 392c6de98af1fd7e2fc9c7bf5e52be16286f7b42 (diff) |
xfs: return -E2BIG if hit the maximum size limits of ACLs
We should return -E2BIG rather than -EINVAL if hit the maximum size
limits of ACLS, as the former is consistent with VFS xattr syscalls.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r-- | fs/xfs/xfs_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c index 0ecec1896f25..6888ad886ff6 100644 --- a/fs/xfs/xfs_acl.c +++ b/fs/xfs/xfs_acl.c | |||
@@ -281,7 +281,7 @@ xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) | |||
281 | if (!acl) | 281 | if (!acl) |
282 | goto set_acl; | 282 | goto set_acl; |
283 | 283 | ||
284 | error = -EINVAL; | 284 | error = -E2BIG; |
285 | if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) | 285 | if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) |
286 | return error; | 286 | return error; |
287 | 287 | ||