/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2017-5-30 bernard the first version */ #include #ifdef RT_USING_DFS #include int mnt_init(void) { if(rt_device_find("virtio-blk0")) { /* mount virtio-blk as root directory */ if (dfs_mount("virtio-blk0", "/", "elm", 0, RT_NULL) == 0) { rt_kprintf("file system initialization done!\n"); } } return 0; } INIT_ENV_EXPORT(mnt_init); #endif