Skip to content

Commit

Permalink
Merge branch 'support-bundle-simulated-implementation' into support-b…
Browse files Browse the repository at this point in the history
…undle-bg-task
  • Loading branch information
smklein committed Dec 17, 2024
2 parents 80edd57 + 60c27d3 commit 900c670
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sled-agent/src/sim/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,13 +941,10 @@ impl NestedDatasetStorage {
// Create a mountpoint for the nested dataset storage that lasts
// as long as the nested dataset does.
let mountpoint = name.mountpoint(zpool_root);
println!("NestedDatasetStorage: Mountpoint {mountpoint}");
let parent = mountpoint.as_path().parent().unwrap();
println!("NestedDatasetStorage: Creating parent dir: {parent}");
std::fs::create_dir_all(&parent).unwrap();

let new_dir_name = mountpoint.as_path().file_name().unwrap();
println!("NestedDatasetStorage: New dir name: {new_dir_name}");
let mountpoint = camino_tempfile::Builder::new()
.rand_bytes(0)
.prefix(new_dir_name)
Expand Down

0 comments on commit 900c670

Please sign in to comment.