lkml.org 
[lkml]   [2020]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.7 398/477] afs: Fix the mapping of the UAEOVERFLOW abort code
    Date
    From: David Howells <dhowells@redhat.com>

    [ Upstream commit 4ec89596d06bd481ba827f3b409b938d63914157 ]

    Abort code UAEOVERFLOW is returned when we try and set a time that's out of
    range, but it's currently mapped to EREMOTEIO by the default case.

    Fix UAEOVERFLOW to map instead to EOVERFLOW.

    Found with the generic/258 xfstest. Note that the test is wrong as it
    assumes that the filesystem will support a pre-UNIX-epoch date.

    Fixes: 1eda8bab70ca ("afs: Add support for the UAE error table")
    Signed-off-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    fs/afs/misc.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/fs/afs/misc.c b/fs/afs/misc.c
    index 52b19e9c15351..5334f1bd2bca7 100644
    --- a/fs/afs/misc.c
    +++ b/fs/afs/misc.c
    @@ -83,6 +83,7 @@ int afs_abort_to_error(u32 abort_code)
    case UAENOLCK: return -ENOLCK;
    case UAENOTEMPTY: return -ENOTEMPTY;
    case UAELOOP: return -ELOOP;
    + case UAEOVERFLOW: return -EOVERFLOW;
    case UAENOMEDIUM: return -ENOMEDIUM;
    case UAEDQUOT: return -EDQUOT;

    --
    2.25.1


    \
     
     \ /
      Last update: 2020-06-23 22:18    [W:3.479 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site