littlefs: Map LFS_ERR_CORRUPT to EILSEQ

Previously EBAD (invalid exchange), mapping the error CORRUPT to EILSEQ
(illegal byte sequence) makes more sense as a description of the type of
error.
pull/6772/head
Christopher Haster 2018-04-29 16:14:01 +03:00
parent b2f409c652
commit 2697ebeb21
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ static int lfs_toerror(int err)
case LFS_ERR_INVAL: return -EINVAL;
case LFS_ERR_NOSPC: return -ENOSPC;
case LFS_ERR_NOMEM: return -ENOMEM;
case LFS_ERR_CORRUPT: return -EILSEQ;
default: return err;
}
}