summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2022-01-23 05:17:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-23 12:08:41 +0100
commitf94e6284aa777ab7b63374759b35e0d8219e3d4d (patch)
treef3df9c4cfe92eb95b855f73299f424dbe427499b
parent32c57ab52a2232386b4507a53435c97d197d57dc (diff)
Change a EIO by a ENOSPC in case where not enough space
Return a ENOSPC to notify that not enough space is here after the xattr entry instead of returning an EIO. Message-Id: <20220123041715.19402-15-etienne.brateau@gmail.com>
-rw-r--r--ext2fs/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/xattr.c b/ext2fs/xattr.c
index 31af3b25..ce392150 100644
--- a/ext2fs/xattr.c
+++ b/ext2fs/xattr.c
@@ -789,7 +789,7 @@ ext2_set_xattr (struct node *np, const char *name, const char *value,
/* 4 null bytes after xattr entry */
if (rest < 4)
{
- err = EIO;
+ err = ENOSPC;
goto cleanup;
}