修复/userdata分区擦除后无法挂载的问题

issue#I3O8IF的修改中,将fat无法识别的格式错误码由ENOENT改为ENOTSUP。此处修改有遗漏,造成无fat格式的userdata分区无法挂载。
This commit is contained in:
JING 2021-04-29 20:09:06 +08:00 committed by Gitee
parent 68f62d9de8
commit 4b0e47fd03
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ STATIC VOID OsMountUserdata(const CHAR *fsType)
return;
}
err = get_errno();
if (err == ENOENT) {
if (err == ENOTSUP) {
#ifdef LOSCFG_FS_FAT
ret = format(emmcUserdataDev, 0, FM_FAT32);
if (ret != LOS_OK) {