From 4130562b1555cabe441efe9420cebe12e7ed8d39 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 13 Jan 2024 16:43:49 -0500 Subject: application loading --- kernel/vfile.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kernel/vfile.cpp') diff --git a/kernel/vfile.cpp b/kernel/vfile.cpp index 9f549e5..3b9dcb2 100644 --- a/kernel/vfile.cpp +++ b/kernel/vfile.cpp @@ -163,6 +163,13 @@ namespace mercury::kernel::vfile { } + storage::fs_result vfile::read_file( + uint64_t start, uint64_t length, void *into + ) const { + return bd->mounted_as->read_bytes_from_file( + dir_entry.node, start, length, into); + } + storage::fs_result lookup_path( const vfile &root, const canon_path &path, std::optional &out ) { -- cgit v1.2.3