Skip to content

Commit

Permalink
decouple the storage logic from Node object
Browse files Browse the repository at this point in the history
Summary:
Similar to `Network` struct, there will `Storage` comprising all information about block devices with a concrete lifetime.

Ref:
https://www.internalfb.com/code/fbsource/%5Bf622b7d63124%5D%5Bhistory%5D/fbcode/host_management/service_configs/libcfgen/rust/src/hw/network.rs?lines=5-8

Reviewed By: anps77

Differential Revision: D57781337

fbshipit-source-id: cf248df0b776ba9da421a3c4c3bddefbb3ae938a
  • Loading branch information
Pavel Iatchenii authored and facebook-github-bot committed May 24, 2024
1 parent a4aa0bc commit 2e3613a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oomd/cfgen/src/cfgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ fn oomd2_oomd_restart_threshold() -> BTreeMap<String, OomdRestartThreshold> {
}

fn on_ssd(node: &Node) -> bool {
node.has_ssd_root()
node.storage().has_ssd_root()
}

fn io_latency_supported(_node: &Node) -> bool {
Expand Down

0 comments on commit 2e3613a

Please sign in to comment.