diff --git a/block/src/disk_file.rs b/block/src/disk_file.rs index 3f7edfabf..1dbaf1945 100644 --- a/block/src/disk_file.rs +++ b/block/src/disk_file.rs @@ -42,3 +42,9 @@ pub trait DiskSize: Send + Debug { /// Virtual size of the disk image in bytes (reported capacity). fn logical_size(&self) -> BlockResult; } + +/// Host allocation size of a file-backed disk image. +pub trait PhysicalSize: Send + Debug { + /// Actual bytes occupied on the host filesystem. + fn physical_size(&self) -> BlockResult; +}