20 if (!init_result.has_value()) {
21 klog::Err(
"FileSystemInit: vfs::Init failed: {}",
22 init_result.error().message());
29 if (!mount_result.has_value()) {
30 klog::Err(
"FileSystemInit: failed to mount ramfs at /: {}",
31 mount_result.error().message());
37 const size_t blk_count = DeviceManagerSingleton::instance().FindDevicesByType(
40 if (blk_count > 0 && blk_nodes[0]->block_device !=
nullptr) {
43 auto fat_mount = fat_fs.
Mount(blk);
44 if (!fat_mount.has_value()) {
45 klog::Err(
"FileSystemInit: FatFsFileSystem::Mount failed: {}",
46 fat_mount.error().message());
49 if (!vfs_mount.has_value()) {
50 klog::Err(
"FileSystemInit: vfs mount at /mnt/fat failed: {}",
51 vfs_mount.error().message());
53 klog::Info(
"FileSystemInit: FatFS mounted at /mnt/fat (device: {})",