block: vhdx: Remove catch all in physical_size boundary

Vhdx::physical_size() can only return Error::GetFileMetadata.
Replace the catch-all arm with unreachable!() so future error
variants are not silently mapped to a generic Io classification.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-04-17 09:48:19 +02:00
committed by Rob Bradford
parent da64acb775
commit 4416a582c8

View File

@@ -53,7 +53,7 @@ impl disk_file::PhysicalSize for VhdxDiskSync {
Error::GetFileMetadata(io) => {
BlockError::new(BlockErrorKind::Io, Error::GetFileMetadata(io))
}
_ => BlockError::new(BlockErrorKind::Io, e),
_ => unreachable!("unexpected error from Vhdx::physical_size(): {e}"),
})
}
}