Skip to content

Commit

Permalink
Fix fallocate bug in AgingScenario::run() function
Browse files Browse the repository at this point in the history
  • Loading branch information
janjurca committed Apr 19, 2024
1 parent a3b2fb2 commit 30006da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/scenarios/aging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void AgingScenario::run() {
# warning "FALLOCATE not supported on macOS"
throw std::runtime_error("FALLOCATE not supported on this system");
#elif __linux__ || __unix__ || defined(_POSIX_VERSION)
auto random_file = tree.randomPunchableFile(get_block_size().convert<DataUnit::B>().get_value(), true);
auto random_file = tree.randomPunchableFile(get_block_size().convert<DataUnit::B>().get_value());
auto random_file_path = random_file->path(true);
auto block_size = get_block_size().convert<DataUnit::B>().get_value();
std::tuple<size_t, size_t> hole_adress = random_file->getHoleAdress(block_size, true);
Expand Down

0 comments on commit 30006da

Please sign in to comment.