add ceph support
This commit is contained in:
parent
fa04e70d44
commit
a44d503113
10
src/main.rs
10
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;
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user