修复/userdata分区擦除后无法挂载的问题
issue#I3O8IF的修改中,将fat无法识别的格式错误码由ENOENT改为ENOTSUP。此处修改有遗漏,造成无fat格式的userdata分区无法挂载。
This commit is contained in:
parent
68f62d9de8
commit
4b0e47fd03
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue