Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fio: check for proper maximum file size #44

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bectl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "bectl"
version = "0.1.0"
authors = ["tilpner <betree@tilpner.com>", "Johannes Wünsche <johannes@spacesnek.rocks>"]
edition = "2021"
rust-version = "1.65"
rust-version = "1.66.1"

[dependencies]
betree_storage_stack = { path = "../betree", features = [ "internal-api" ] }
Expand Down
2 changes: 1 addition & 1 deletion betree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.3.1-alpha"
authors = ["Felix Wiedemann <felix@kann.it>", "Till Hoeppner <betree@tilpner.com>", "Johannes Wünsche <johannes@spacesnek.rocks>"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.65"
rust-version = "1.66.1"

[lib]
crate-type = ["rlib", "staticlib", "cdylib"]
Expand Down
6 changes: 2 additions & 4 deletions fio-haura/src/fio-engine-haura.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,8 @@ static int fio_haura_setup(struct thread_data *td) {
/* Haura needs some additional space to provide extra data like object
* pointers and metadata. This is more of a hack, but nonetheless. */
creat(td->files[idx]->file_name, 0644);
if (truncate(td->files[idx]->file_name, td->o.size + (50 * 1024 * 1024))) {
fprintf(
stderr,
"Could not retruncate file to provide enough storage for Haura.\n");
if (truncate(td->files[idx]->file_name, max(td->o.file_size_high, td->o.size) + (50 * 1024 * 1024))) {
fprintf(stderr,"Could not retruncate file to provide enough storage for Haura.\n");
}
}

Expand Down
2 changes: 1 addition & 1 deletion julea-betree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "julea-betree"
version = "0.1.0"
authors = ["tilpner <betree@tilpner.com>"]
edition = "2018"
rust-version = "1.65"
rust-version = "1.66.1"

[lib]
name = "object_betree"
Expand Down