Re: [Qemu-devel] [PATCH 5/5] drive_open: Add invalidate option for block devices

2011-01-07 Thread Christoph Hellwig
On Tue, Jan 04, 2011 at 03:33:30PM +0100, Juan Quintela wrote: > Linux allows to invalidate block devices. This is needed for the incoming > migration part. It's not. The only thing that makes migration on block devices safe is using O_DIRECT, aka cache=none.

Re: [Qemu-devel] [PATCH 5/5] drive_open: Add invalidate option for block devices

2011-01-04 Thread Blue Swirl
On Tue, Jan 4, 2011 at 2:33 PM, Juan Quintela wrote: > Linux allows to invalidate block devices.  This is needed for the incoming > migration part. > > Signed-off-by: Juan Quintela > --- >  block.h           |    2 ++ >  block/raw-posix.c |   24 >  blockdev.c        |    

[Qemu-devel] [PATCH 5/5] drive_open: Add invalidate option for block devices

2011-01-04 Thread Juan Quintela
Linux allows to invalidate block devices. This is needed for the incoming migration part. Signed-off-by: Juan Quintela --- block.h |2 ++ block/raw-posix.c | 24 blockdev.c|9 + 3 files changed, 31 insertions(+), 4 deletions(-) diff