!100 解决kernel/liteos_a仓下关闭fat,编译不过的问题
Merge pull request !100 from li_zan/master
This commit is contained in:
commit
7387d410bf
|
@ -76,12 +76,12 @@ UINT32 g_usbMode = 0;
|
|||
|
||||
typedef VOID *(*StorageHookFunction)(VOID *);
|
||||
|
||||
#ifdef LOSCFG_FS_FAT_CACHE
|
||||
static UINT32 OsReHookFuncAddDiskRef(StorageHookFunction handler,
|
||||
VOID *param) __attribute__((weakref("osReHookFuncAdd")));
|
||||
|
||||
static UINT32 OsReHookFuncDelDiskRef(StorageHookFunction handler) __attribute__((weakref("osReHookFuncDel")));
|
||||
|
||||
#ifdef LOSCFG_FS_FAT_CACHE
|
||||
UINT32 GetFatBlockNums(VOID)
|
||||
{
|
||||
return g_uwFatBlockNums;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue