Re: [Qemu-devel] [PATCH 2/4] block: add a helper to change writeback mode on the fly

2011-03-19 Thread Blue Swirl
On Thu, Mar 17, 2011 at 6:44 PM, Stefan Hajnoczi wrote: > On Thu, Mar 17, 2011 at 3:11 PM, Kevin Wolf wrote: >> Am 17.03.2011 15:44, schrieb Daniel P. Berrange: >>> On Tue, Mar 15, 2011 at 03:11:32PM +0100, Christoph Hellwig wrote: Add a new bdrv_change_cache that can set/clear the writeback

Re: [Qemu-devel] [PATCH 2/4] block: add a helper to change writeback mode on the fly

2011-03-17 Thread Stefan Hajnoczi
On Thu, Mar 17, 2011 at 3:11 PM, Kevin Wolf wrote: > Am 17.03.2011 15:44, schrieb Daniel P. Berrange: >> On Tue, Mar 15, 2011 at 03:11:32PM +0100, Christoph Hellwig wrote: >>> Add a new bdrv_change_cache that can set/clear the writeback flag >>> at runtime by stopping all I/O and closing/reopening

Re: [Qemu-devel] [PATCH 2/4] block: add a helper to change writeback mode on the fly

2011-03-17 Thread Kevin Wolf
Am 17.03.2011 15:44, schrieb Daniel P. Berrange: > On Tue, Mar 15, 2011 at 03:11:32PM +0100, Christoph Hellwig wrote: >> Add a new bdrv_change_cache that can set/clear the writeback flag >> at runtime by stopping all I/O and closing/reopening the image file. >> >> All code is based on a patch from

Re: [Qemu-devel] [PATCH 2/4] block: add a helper to change writeback mode on the fly

2011-03-17 Thread Daniel P. Berrange
On Tue, Mar 15, 2011 at 03:11:32PM +0100, Christoph Hellwig wrote: > Add a new bdrv_change_cache that can set/clear the writeback flag > at runtime by stopping all I/O and closing/reopening the image file. > > All code is based on a patch from Prerna Saxena > with minimal refactoring. > > Signed

[Qemu-devel] [PATCH 2/4] block: add a helper to change writeback mode on the fly

2011-03-15 Thread Christoph Hellwig
Add a new bdrv_change_cache that can set/clear the writeback flag at runtime by stopping all I/O and closing/reopening the image file. All code is based on a patch from Prerna Saxena with minimal refactoring. Signed-off-by: Christoph Hellwig Index: qemu/block.c