(dev: &Utf8Path)
| 168 | } |
| 169 | |
| 170 | pub(crate) fn wipefs(dev: &Utf8Path) -> Result<()> { |
| 171 | println!("Wiping device {dev}"); |
| 172 | Command::new("wipefs") |
| 173 | .args(["-a", dev.as_str()]) |
| 174 | .run_inherited_with_cmd_context() |
| 175 | } |
| 176 | |
| 177 | pub(crate) fn udev_settle() -> Result<()> { |
| 178 | // There's a potential window after rereading the partition table where |
no test coverage detected