diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-13 16:43:49 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-13 16:43:49 -0500 |
commit | 4130562b1555cabe441efe9420cebe12e7ed8d39 (patch) | |
tree | beaf0012373aab2c3a13fe0147a5cda4af28ef78 /kernel/vfile.cpp | |
parent | 882e74b2191c059a9226cbd8bcb51c97da36247c (diff) | |
download | hilbert-os-4130562b1555cabe441efe9420cebe12e7ed8d39.tar.gz |
application loading
Diffstat (limited to 'kernel/vfile.cpp')
-rw-r--r-- | kernel/vfile.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<vfile> &out ) { |