[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 15/17] Change a EIO by a ENOSPC in case where not enough spac
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 15/17] Change a EIO by a ENOSPC in case where not enough space |
Date: |
Sun, 23 Jan 2022 12:08:46 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Etienne Brateau, le dim. 23 janv. 2022 05:17:13 +0100, a ecrit:
> Return a ENOSPC to notify that not enough space is here after the
> xattr entry instead of returning an EIO.
> ---
> ext2fs/xattr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ext2fs/xattr.c b/ext2fs/xattr.c
> index 45f7febe..7976eaa6 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;
> }
>
> --
> 2.34.1
>
>
--
Samuel
<s> je la connaissais pas celle la : "make: Entering an unknown directory"
-+- #ens-mim -+-
- Re: [PATCH 13/17] ext2fs: remove a #define not_yet, (continued)
- [PATCH 12/17] ext2fs: detect and warn when filesystem is an ext3 fs, Etienne Brateau, 2022/01/22
- [PATCH 07/17] ext2fs: use macro to check flags, Etienne Brateau, 2022/01/22
- [PATCH 04/17] move to ext2_fs.h a #define, Etienne Brateau, 2022/01/22
- [PATCH 09/17] ext2fs: set the f_namelen to the correct value, Etienne Brateau, 2022/01/22
- [PATCH 15/17] Change a EIO by a ENOSPC in case where not enough space, Etienne Brateau, 2022/01/22
- Re: [PATCH 15/17] Change a EIO by a ENOSPC in case where not enough space,
Samuel Thibault <=
- Re: [PATCH 01/17] ext2fs Merge 2 headers, Samuel Thibault, 2022/01/23