Commit 58457f1c authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: give -E2BIG for no space in xattr

This patch returns -E2BIG if there is no space to add an xattr entry.
This should fix generic/026 in xfstests as well.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 4da7bf5a
...@@ -500,7 +500,7 @@ static int __f2fs_setxattr(struct inode *inode, int index, ...@@ -500,7 +500,7 @@ static int __f2fs_setxattr(struct inode *inode, int index,
free = free + ENTRY_SIZE(here); free = free + ENTRY_SIZE(here);
if (unlikely(free < newsize)) { if (unlikely(free < newsize)) {
error = -ENOSPC; error = -E2BIG;
goto exit; goto exit;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment