Re: [Qemu-devel] [PATCH] raw-posix: Support discard on more filesystems

2013-01-09 Thread Paolo Bonzini
Il 05/01/2013 13:05, Kusanagi Kouichi ha scritto: > Linux 2.6.38 introduced the filesystem independent interface to > deallocate part of a file. As of Linux 3.7, btrfs, ext4, ocfs2, > tmpfs and xfs support it. > > Signed-off-by: Kusanagi Kouichi > --- > block/raw-posix.c | 22 +

Re: [Qemu-devel] [PATCH] raw-posix: Support discard on more filesystems

2013-01-07 Thread Stefan Hajnoczi
On Sat, Jan 05, 2013 at 09:05:10PM +0900, Kusanagi Kouichi wrote: > @@ -1098,15 +1101,30 @@ static int xfs_discard(BDRVRawState *s, int64_t > sector_num, int nb_sectors) > static coroutine_fn int raw_co_discard(BlockDriverState *bs, > int64_t sector_num, int nb_sectors) > { > -#ifdef CONFIG

[Qemu-devel] [PATCH] raw-posix: Support discard on more filesystems

2013-01-05 Thread Kusanagi Kouichi
Linux 2.6.38 introduced the filesystem independent interface to deallocate part of a file. As of Linux 3.7, btrfs, ext4, ocfs2, tmpfs and xfs support it. Signed-off-by: Kusanagi Kouichi --- block/raw-posix.c | 22 -- configure | 19 +++ 2 files cha