From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWfL-0001Y3-MI for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:34:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWfG-0004nV-PF for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:34:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWfF-0004ml-Te for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:34:14 -0400 From: Kevin Wolf Date: Fri, 15 Jun 2012 15:33:22 +0200 Message-Id: <1339767219-24297-23-git-send-email-kwolf@redhat.com> In-Reply-To: <1339767219-24297-1-git-send-email-kwolf@redhat.com> References: <1339767219-24297-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 22/39] block: copy enable_write_cache in bdrv_append List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Paolo Bonzini Because the guest will be able to flip enable_write_cache, the actual state may not match what is used to open the new snapshot. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 7538112..9bff401 100644 --- a/block.c +++ b/block.c @@ -1000,6 +1000,8 @@ void bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top) tmp.buffer_alignment = bs_top->buffer_alignment; tmp.copy_on_read = bs_top->copy_on_read; + tmp.enable_write_cache = bs_top->enable_write_cache; + /* i/o timing parameters */ tmp.slice_time = bs_top->slice_time; tmp.slice_start = bs_top->slice_start; -- 1.7.6.5