From patchwork Thu Jan 26 17:22:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2,03/18] block: pass protocol flags up to the format Date: Thu, 26 Jan 2012 07:22:34 -0000 From: Paolo Bonzini X-Patchwork-Id: 138015 Message-Id: <1327598569-5199-4-git-send-email-pbonzini@redhat.com> 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); } }