Merge pull request #6772 from ARMmbed/g-littlefs-eilseq

littlefs: Map LFS_ERR_CORRUPT to EILSEQ
pull/6991/head
Cruz Monrreal 2018-05-23 10:12:19 -05:00 committed by GitHub
commit eb9435b52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
}