mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
b2f409c652
commit
2697ebeb21
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue