summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-06-14 22:12:05 +0100
committerDavid Howells <dhowells@redhat.com>2020-06-15 15:41:03 +0100
commit4ec89596d06bd481ba827f3b409b938d63914157 (patch)
treeba486cb6ead64f2ec3fddc4a66935b3f18d2e377 /fs
parent793fe82ee33aab1023cf023cd7d744af19a3dff9 (diff)
downloadlwn-4ec89596d06bd481ba827f3b409b938d63914157.tar.gz
lwn-4ec89596d06bd481ba827f3b409b938d63914157.zip
afs: Fix the mapping of the UAEOVERFLOW abort code
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/afs/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/misc.c b/fs/afs/misc.c
index 52b19e9c1535..5334f1bd2bca 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;