From f94e6284aa777ab7b63374759b35e0d8219e3d4d Mon Sep 17 00:00:00 2001 From: Etienne Brateau Date: Sun, 23 Jan 2022 05:17:13 +0100 Subject: 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> --- ext2fs/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3