From a44d503113fc3b88911b0316b2e1c231cf8d3dd0 Mon Sep 17 00:00:00 2001 From: empire Date: Fri, 6 Sep 2024 21:53:19 +0200 Subject: [PATCH] add ceph support --- src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.rs b/src/main.rs index 34d9f1b..6318559 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,9 @@ fn main() { "cifs" => { true }, + "ceph" => { + true + }, _ => false }, _ => false @@ -68,6 +71,13 @@ fn process_mount(fstype: &str, what: &String, path: PathBuf) { failed_initial_check = ping_unreachable(&ip, 5); higher_timeout = true; }, + "ceph" => { + let host = what.split(",").nth(1).unwrap(); + let ips = lookup_host(host).unwrap(); + let ip = ips.first().unwrap(); + failed_initial_check = ping_unreachable(&ip, 5); + higher_timeout = true; + }, _ => {} }