pf2: add drv::Initialize(Volume *)

This commit is contained in:
Michael Scire
2020-11-26 10:38:26 -08:00
parent ceef76c428
commit 102e1e0e74
7 changed files with 163 additions and 3 deletions

View File

@@ -273,7 +273,9 @@ namespace ams::prfile2::vol {
vol->tail_entry.tracker_bits = vol->tail_entry.tracker_buf;
/* Initialize driver for volume. */
/* TODO: drv::Initialize(vol); + error checking */
if (auto err = drv::Initialize(vol); err != pf::Error_Ok) {
return SetLastErrorAndReturn(err);
}
/* Setup the cache. */
/* TODO: cache::SetCache(vol, drive_table->cache->pages, drive_table->cache->buffers, drive_table->cache->num_fat_pages, drive_table->cache->num_data_pages); */