* [Qemu-devel] [PULL for-2.12 0/1] Block patches
@ 2018-04-04 16:10 Jeff Cody
2018-04-04 16:10 ` [Qemu-devel] [PULL for-2.12 1/1] block/rbd: remove processed options from qdict Jeff Cody
2018-04-04 19:35 ` [Qemu-devel] [PULL for-2.12 0/1] Block patches Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Jeff Cody @ 2018-04-04 16:10 UTC (permalink / raw)
To: qemu-block; +Cc: peter.maydell, jcody, Kevin Wolf, qemu-devel
The following changes since commit fd69ad866b62ca8ed4337ffee83b6d82a4e99282:
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-04-04 14:00:07 +0100)
are available in the git repository at:
git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request
for you to fetch changes up to bfb15b4becf2c9cf484bc3bf893a37c8f3c15cb3:
block/rbd: remove processed options from qdict (2018-04-04 12:05:13 -0400)
----------------------------------------------------------------
Regression fix for 2.12
----------------------------------------------------------------
Jeff Cody (1):
block/rbd: remove processed options from qdict
block/rbd.c | 7 +++++++
1 file changed, 7 insertions(+)
--
2.13.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL for-2.12 1/1] block/rbd: remove processed options from qdict
2018-04-04 16:10 [Qemu-devel] [PULL for-2.12 0/1] Block patches Jeff Cody
@ 2018-04-04 16:10 ` Jeff Cody
2018-04-04 19:35 ` [Qemu-devel] [PULL for-2.12 0/1] Block patches Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Cody @ 2018-04-04 16:10 UTC (permalink / raw)
To: qemu-block; +Cc: peter.maydell, jcody, Kevin Wolf, qemu-devel
Commit 4bfb274 added some QAPIfication of option parsing in
qemu_rbd_open(). We need to remove all the options we processed,
otherwise in bdrv_open_inherit() we will think the remaining options are
invalid.
(This needs to go in 2.12 to avoid a regression that prevents rbd
from being opened.)
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
---
block/rbd.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/block/rbd.c b/block/rbd.c
index 5b64849dc6..c9359d0ad8 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -623,6 +623,7 @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
BlockdevOptionsRbd *opts = NULL;
Visitor *v;
QObject *crumpled = NULL;
+ const QDictEntry *e;
Error *local_err = NULL;
const char *filename;
char *keypairs, *secretid;
@@ -671,6 +672,12 @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
goto out;
}
+ /* Remove the processed options from the QDict (the visitor processes
+ * _all_ options in the QDict) */
+ while ((e = qdict_first(options))) {
+ qdict_del(options, e->key);
+ }
+
r = qemu_rbd_connect(&s->cluster, &s->io_ctx, opts,
!(flags & BDRV_O_NOCACHE), keypairs, secretid, errp);
if (r < 0) {
--
2.13.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL for-2.12 0/1] Block patches
2018-04-04 16:10 [Qemu-devel] [PULL for-2.12 0/1] Block patches Jeff Cody
2018-04-04 16:10 ` [Qemu-devel] [PULL for-2.12 1/1] block/rbd: remove processed options from qdict Jeff Cody
@ 2018-04-04 19:35 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2018-04-04 19:35 UTC (permalink / raw)
To: Jeff Cody; +Cc: Qemu-block, Kevin Wolf, QEMU Developers
On 4 April 2018 at 17:10, Jeff Cody <jcody@redhat.com> wrote:
> The following changes since commit fd69ad866b62ca8ed4337ffee83b6d82a4e99282:
>
> Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-04-04 14:00:07 +0100)
>
> are available in the git repository at:
>
> git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request
>
> for you to fetch changes up to bfb15b4becf2c9cf484bc3bf893a37c8f3c15cb3:
>
> block/rbd: remove processed options from qdict (2018-04-04 12:05:13 -0400)
>
> ----------------------------------------------------------------
> Regression fix for 2.12
> ----------------------------------------------------------------
>
> Jeff Cody (1):
> block/rbd: remove processed options from qdict
>
> block/rbd.c | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-04 19:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-04 16:10 [Qemu-devel] [PULL for-2.12 0/1] Block patches Jeff Cody
2018-04-04 16:10 ` [Qemu-devel] [PULL for-2.12 1/1] block/rbd: remove processed options from qdict Jeff Cody
2018-04-04 19:35 ` [Qemu-devel] [PULL for-2.12 0/1] Block patches Peter Maydell
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).