add ceph support

This commit is contained in:
empire 2024-09-06 21:53:19 +02:00
parent fa04e70d44
commit a44d503113

View File

@ -17,6 +17,9 @@ fn main() {
"cifs" => { "cifs" => {
true true
}, },
"ceph" => {
true
},
_ => false _ => false
}, },
_ => false _ => false
@ -68,6 +71,13 @@ fn process_mount(fstype: &str, what: &String, path: PathBuf) {
failed_initial_check = ping_unreachable(&ip, 5); failed_initial_check = ping_unreachable(&ip, 5);
higher_timeout = true; 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;
},
_ => {} _ => {}
} }