From: Kevin Wolf <kwolf@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Fam Zheng <famz@redhat.com>,
qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>,
qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] luks: Allow share-rw=on
Date: Tue, 14 Aug 2018 10:24:59 +0200 [thread overview]
Message-ID: <20180814082459.GC5025@dhcp-200-186.str.redhat.com> (raw)
In-Reply-To: <20180814072749.GB5057@redhat.com>
Am 14.08.2018 um 09:27 hat Daniel P. Berrangé geschrieben:
> On Tue, Aug 14, 2018 at 03:25:51PM +0800, Fam Zheng wrote:
> > Format drivers such as qcow2 don't allow sharing the same image between
> > two QEMU instances in order to prevent image corruptions, because of
> > metadata cache. LUKS driver don't modify metadata except for when
> > creating image, so it is safe to relax the permission. This makes
> > share-rw=on property work on virtual devices.
> >
> > Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> > ---
> > block/crypto.c | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/block/crypto.c b/block/crypto.c
> > index 146d81c90a..33ee01bebd 100644
> > --- a/block/crypto.c
> > +++ b/block/crypto.c
> > @@ -627,7 +627,9 @@ BlockDriver bdrv_crypto_luks = {
> > .bdrv_probe = block_crypto_probe_luks,
> > .bdrv_open = block_crypto_open_luks,
> > .bdrv_close = block_crypto_close,
> > - .bdrv_child_perm = bdrv_format_default_perms,
> > + /* This driver doesn't modify LUKS metadata except when creating image.
> > + * Allow share-rw=on as a special case. */
> > + .bdrv_child_perm = bdrv_filter_default_perms,
> > .bdrv_co_create = block_crypto_co_create_luks,
> > .bdrv_co_create_opts = block_crypto_co_create_opts_luks,
> > .bdrv_co_truncate = block_crypto_co_truncate,
>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Thanks, applied to the block branch.
Kevin
prev parent reply other threads:[~2018-08-14 8:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 7:25 [Qemu-devel] [PATCH] luks: Allow share-rw=on Fam Zheng
2018-08-14 7:27 ` Daniel P. Berrangé
2018-08-14 8:24 ` Kevin Wolf [this message]
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=20180814082459.GC5025@dhcp-200-186.str.redhat.com \
--to=kwolf@redhat.com \
--cc=berrange@redhat.com \
--cc=famz@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).