On 15.06.2012, at 15:33, Kevin Wolf wrote:
> From: Paolo Bonzini
>
> Either FIEMAP, or SEEK_DATA+SEEK_HOLE can be used to implement the
> is_allocated callback for raw files. On Linux ext4, btrfs and XFS
> all support it.
>
> Signed-off-by: Paolo Bonzini
> Signed-off-by: Kevin Wolf
> ---
>
From: Paolo Bonzini
Either FIEMAP, or SEEK_DATA+SEEK_HOLE can be used to implement the
is_allocated callback for raw files. On Linux ext4, btrfs and XFS
all support it.
Signed-off-by: Paolo Bonzini
Signed-off-by: Kevin Wolf
---
block/raw-posix.c | 98 +++