(path: &std::path::Path)
| 982 | } |
| 983 | |
| 984 | fn get_image_info(path: &std::path::Path) -> Option<serde_json::Value> { |
| 985 | let output = run_qemu_img(path, &["info", "-U", "--output=json"], None); |
| 986 | |
| 987 | output.status.success().then_some(())?; |
| 988 | serde_json::from_slice(&output.stdout).ok() |
| 989 | } |
| 990 | |
| 991 | fn get_qcow2_v3_info(path: &Path) -> Result<Option<serde_json::Value>, String> { |
| 992 | let info = get_image_info(path) |
no test coverage detected