diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-04-12 11:52:30 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:33:19 +0200 |
| commit | c93f5f284b21886a47f2b7b18a32967d4356bf3f (patch) | |
| tree | 356fafbff3274fba78c90b517bb939097fbb2eb7 | |
| parent | f48aceae54a7f0ad77c38dfbc5ab0a0f18990245 (diff) | |
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: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index c6a604b92..dc3d085a1 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -539,7 +539,7 @@ static int __f2fs_setxattr(struct inode *inode, int index, free = free + ENTRY_SIZE(here); if (unlikely(free < newsize)) { - error = -ENOSPC; + error = -E2BIG; goto exit; } } |
