Skip to content

Commit

Permalink
Flag disks that are missing for repair
Browse files Browse the repository at this point in the history
  • Loading branch information
cholcombe973 committed Sep 20, 2017
1 parent a8f2d7f commit 185faed
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/test_disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@ fn run_checks(device_info: &Device) -> Result<Status> {
}
}
false => {
// OSD is mounted but disk device does not exist. Did someone
// pull the disk?
debug!("Device does not exist: {:?}", device);
// mountpoint exists for device that does not exist. Lets flag it
// so it gets checked out by a human
debug!(
"Device does not exist: {:?} but system thinks it is mounted",
device
);
disk_status.corrupted = true;
}
};
}
Expand Down

0 comments on commit 185faed

Please sign in to comment.