change config for fs2

This commit is contained in:
li_zan 2021-03-29 10:19:58 +08:00
parent ee740f627f
commit 2e47684d15
1 changed files with 2 additions and 0 deletions

View File

@ -437,11 +437,13 @@ STATIC VOID OsMountUserdata(const CHAR *fsType)
}
err = get_errno();
if (err == ENOENT) {
#ifdef LOSCFG_FS_FAT
ret = format(emmcUserdataDev, 0, FM_FAT32);
if (ret != LOS_OK) {
PRINT_ERR("Failed to format %s\n", emmcUserdataDev);
return;
}
#endif
ret = mount(emmcUserdataDev, userdataDir, fsType, 0, "umask=000");
if (ret != LOS_OK) {
err = get_errno();