Re: [Qemu-devel] [RFC PATCH 17/17] raw: implement is_allocated

2012-03-24 Thread Christoph Hellwig
On Thu, Mar 08, 2012 at 06:15:17PM +0100, Paolo Bonzini wrote: > SEEK_DATA and SEEK_HOLE can be used to implement the is_allocated > callback for raw files. These currently work on btrfs, with an XFS > implementation also coming soon. Btw - if you're interested in a bit more kernel hacking it wou

[Qemu-devel] [RFC PATCH 17/17] raw: implement is_allocated

2012-03-08 Thread Paolo Bonzini
SEEK_DATA and SEEK_HOLE can be used to implement the is_allocated callback for raw files. These currently work on btrfs, with an XFS implementation also coming soon. Signed-off-by: Paolo Bonzini --- block/raw-posix.c | 62 + block/raw.c