pub fn detect(path: &Path) -> Result<Option<Qcow2Info>, FxcpError>Expand description
Detect whether a file is a qcow2 image by reading the header.
Returns Ok(None) for non-qcow2 files (magic/version mismatch – expected for most files).
Returns Err for genuine I/O or parse failures.