From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqT2X-0003Ri-QH for qemu-devel@nongnu.org; Thu, 26 Jan 2012 12:23:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqT2T-0003H1-AI for qemu-devel@nongnu.org; Thu, 26 Jan 2012 12:23:13 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:60416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqT2S-0003D7-To for qemu-devel@nongnu.org; Thu, 26 Jan 2012 12:23:09 -0500 Received: by mail-iy0-f173.google.com with SMTP id k25so1227300iah.4 for ; Thu, 26 Jan 2012 09:23:08 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 26 Jan 2012 18:22:34 +0100 Message-Id: <1327598569-5199-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1327598569-5199-1-git-send-email-pbonzini@redhat.com> References: <1327598569-5199-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 03/18] block: pass protocol flags up to the format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com In the next patches, the protocols will modify bs->open_flags to signify that they cannot support the exact requested feature set. Pass the modified flags to the format. Signed-off-by: Paolo Bonzini --- block.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index a1d2433..5055975 100644 --- a/block.c +++ b/block.c @@ -616,6 +616,7 @@ static int bdrv_open_common(BlockDriverState *bs, const char *filename, } else { ret = bdrv_file_open(&bs->file, filename, bs->open_flags); if (ret >= 0) { + bs->open_flags = bs->file->open_flags; ret = drv->bdrv_open(bs, bs->open_flags); } } -- 1.7.7.6