qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
	qemu-block@nongnu.org
Subject: [Qemu-devel] [PATCH 0/4] block: Fix permission during reopen
Date: Fri,  9 Mar 2018 16:09:06 +0800	[thread overview]
Message-ID: <20180309080910.7274-1-famz@redhat.com> (raw)

We write open the whole backing chain during reopen. It is not necessary and
will cause image locking problems if the backing image is shared.

Fam Zheng (4):
  block: Pass "current_flags" in BdrvChildRole.inherit_options
  block: Fix write flags in bdrv_backing_options
  block: Use the actual current_flags during reopen
  iotests: Add regression test for commit base locking

 block.c                    | 52 +++++++++++++++++++++++++++++-----------------
 block/block-backend.c      |  3 ++-
 block/vvfat.c              |  3 ++-
 include/block/block_int.h  |  3 ++-
 tests/qemu-iotests/153     |  6 ++++++
 tests/qemu-iotests/153.out |  4 ++++
 6 files changed, 49 insertions(+), 22 deletions(-)

-- 
2.14.3

             reply	other threads:[~2018-03-09  8:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-09  8:09 Fam Zheng [this message]
2018-03-09  8:09 ` [Qemu-devel] [PATCH 1/4] block: Pass "current_flags" in BdrvChildRole.inherit_options Fam Zheng
2018-03-09  8:09 ` [Qemu-devel] [PATCH 2/4] block: Fix write flags in bdrv_backing_options Fam Zheng
2018-03-09  8:09 ` [Qemu-devel] [PATCH 3/4] block: Use the actual current_flags during reopen Fam Zheng
2018-03-09  8:09 ` [Qemu-devel] [PATCH 4/4] iotests: Add regression test for commit base locking Fam Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180309080910.7274-1-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).