Skip to content

Commit

Permalink
read/write operations are straightforward wrappers for OneDiskStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
frs69wq committed May 1, 2024
1 parent dbb1dd3 commit 400f6d9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/OneDiskStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@ namespace simgrid::module::fs {
}

s4u::ActivityPtr OneDiskStorage::read_async(sg_size_t size) {
throw std::runtime_error("OneDiskStorage::read_async(): NOT IMPLEMENTED YET");
return disks_.front()->read_async(size);
}

void OneDiskStorage::read(sg_size_t size) {
throw std::runtime_error("OneDiskStorage::read(): NOT IMPLEMENTED YET");

disks_.front()->read(size);
}

s4u::ActivityPtr OneDiskStorage::write_async(sg_size_t size) {
throw std::runtime_error("OneDiskStorage::write_async(): NOT IMPLEMENTED YET");
return disks_.front()->write_async(size);
}

void OneDiskStorage::write(sg_size_t size) {
this->disks_.front()->write(size);
disks_.front()->write(size);
}

}

0 comments on commit 400f6d9

Please sign in to comment.