xref: /kernel/uniproton/src/fs/vfs/vfs_init.c (revision 54568cb3)
1/*
2 * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved.
3 *
4 * UniProton is licensed under Mulan PSL v2.
5 * You can use this software according to the terms and conditions of the Mulan PSL v2.
6 * You may obtain a copy of Mulan PSL v2 at:
7 *          http://license.coscl.org.cn/MulanPSL2
8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
11 * See the Mulan PSL v2 for more details.
12 * Create: 2022-09-21
13 * Description: 文件系统vfs层
14 */
15
16#include "stdlib.h"
17#include "prt_typedef.h"
18#include "vfs_operations.h"
19#if (OS_SUPPORT_LITTLEFS == YES)
20#include "lfs_adapter.h"
21#endif
22#include "prt_fs.h"
23
24S32 PRT_VfsInit(void)
25{
26#if (OS_SUPPORT_LITTLEFS == YES)
27    OsLfsInit();
28#endif
29    return FS_OK;
30}
31