Re: [Qemu-devel] [PATCH 03/39] block: implement is_allocated for raw

2012-06-19 Thread Alexander Graf
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 > --- >

[Qemu-devel] [PATCH 03/39] block: implement is_allocated for raw

2012-06-15 Thread 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 +++