From: Max Reitz <mreitz@redhat.com> To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf <kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 13/13] qemu-iotests: Test the x-blockdev-reopen QMP command Date: Wed, 10 Apr 2019 19:03:50 +0200 [thread overview] Message-ID: <1df28c23-7efe-310d-2955-432b9a4bb1ad@redhat.com> (raw) In-Reply-To: <e25b416f8646a476017f21a8484a05931b0e3f5a.1551895814.git.berto@igalia.com> [-- Attachment #1: Type: text/plain, Size: 1546 bytes --] On 06.03.19 19:11, Alberto Garcia wrote: > This patch adds several tests for the x-blockdev-reopen QMP command. > > Signed-off-by: Alberto Garcia <berto@igalia.com> > --- > tests/qemu-iotests/243 | 991 +++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/243.out | 5 + > tests/qemu-iotests/group | 1 + > 3 files changed, 997 insertions(+) > create mode 100644 tests/qemu-iotests/243 > create mode 100644 tests/qemu-iotests/243.out > > diff --git a/tests/qemu-iotests/243 b/tests/qemu-iotests/243 > new file mode 100644 > index 0000000000..35b30092ca > --- /dev/null > +++ b/tests/qemu-iotests/243 > @@ -0,0 +1,991 @@ [...] > + # If an image has a backing file then the 'backing' option must be > + # passed on reopen. We don't allow leaving the option out in this > + # case because it's unclear what the correct semantics would be. > + def test_missing_backing_options_1(self): [...] > + # hd0 has no backing file: we can omit the 'backing' option > + self.reopen(opts) [...] > + # Detach hd2 from hd0. > + self.reopen(opts, {'backing': None}) > + self.reopen(opts, {}, "backing is missing for 'hd0'") I don’t understand the second test. hd0 has no default backing file and it currently has no backing child attached to it. Why would this call fail now? I’m asking because this no longer throws an error after “block: Leave BDS.backing_file constant” of my “block: Deal with filters” series. Max [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Max Reitz <mreitz@redhat.com> To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org Cc: Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org Subject: Re: [Qemu-devel] [PATCH v2 13/13] qemu-iotests: Test the x-blockdev-reopen QMP command Date: Wed, 10 Apr 2019 19:03:50 +0200 [thread overview] Message-ID: <1df28c23-7efe-310d-2955-432b9a4bb1ad@redhat.com> (raw) Message-ID: <20190410170350.CL1XivdMvlzGZY9zYsk3FnfgV3CgX2Q83LpjYY11DdY@z> (raw) In-Reply-To: <e25b416f8646a476017f21a8484a05931b0e3f5a.1551895814.git.berto@igalia.com> [-- Attachment #1: Type: text/plain, Size: 1546 bytes --] On 06.03.19 19:11, Alberto Garcia wrote: > This patch adds several tests for the x-blockdev-reopen QMP command. > > Signed-off-by: Alberto Garcia <berto@igalia.com> > --- > tests/qemu-iotests/243 | 991 +++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/243.out | 5 + > tests/qemu-iotests/group | 1 + > 3 files changed, 997 insertions(+) > create mode 100644 tests/qemu-iotests/243 > create mode 100644 tests/qemu-iotests/243.out > > diff --git a/tests/qemu-iotests/243 b/tests/qemu-iotests/243 > new file mode 100644 > index 0000000000..35b30092ca > --- /dev/null > +++ b/tests/qemu-iotests/243 > @@ -0,0 +1,991 @@ [...] > + # If an image has a backing file then the 'backing' option must be > + # passed on reopen. We don't allow leaving the option out in this > + # case because it's unclear what the correct semantics would be. > + def test_missing_backing_options_1(self): [...] > + # hd0 has no backing file: we can omit the 'backing' option > + self.reopen(opts) [...] > + # Detach hd2 from hd0. > + self.reopen(opts, {'backing': None}) > + self.reopen(opts, {}, "backing is missing for 'hd0'") I don’t understand the second test. hd0 has no default backing file and it currently has no backing child attached to it. Why would this call fail now? I’m asking because this no longer throws an error after “block: Leave BDS.backing_file constant” of my “block: Deal with filters” series. Max [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-04-10 17:04 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-03-06 18:11 [Qemu-devel] [PATCH v2 00/13] Add a 'x-blockdev-reopen' QMP command Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 01/13] block: Allow freezing BdrvChild links Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 02/13] block: Freeze the backing chain for the duration of the commit job Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 03/13] block: Freeze the backing chain for the duration of the mirror job Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 04/13] block: Freeze the backing chain for the duration of the stream job Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 05/13] block: Add 'keep_old_opts' parameter to bdrv_reopen_queue() Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 06/13] block: Handle child references in bdrv_reopen_queue() Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 07/13] block: Allow omitting the 'backing' option in certain cases Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 08/13] block: Allow changing the backing file on reopen Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 09/13] block: Add a 'mutable_opts' field to BlockDriver Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 10/13] block: Add bdrv_reset_options_allowed() Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 11/13] block: Remove the AioContext parameter from bdrv_reopen_multiple() Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 12/13] block: Add an 'x-blockdev-reopen' QMP command Alberto Garcia 2019-03-06 18:11 ` [Qemu-devel] [PATCH v2 13/13] qemu-iotests: Test the x-blockdev-reopen " Alberto Garcia 2019-04-10 17:03 ` Max Reitz [this message] 2019-04-10 17:03 ` Max Reitz 2019-04-11 13:41 ` Alberto Garcia 2019-04-11 13:41 ` Alberto Garcia 2019-04-13 0:53 ` Max Reitz 2019-04-13 0:53 ` Max Reitz 2019-05-14 11:30 ` Alberto Garcia 2019-05-14 13:02 ` Max Reitz 2019-05-14 13:05 ` Alberto Garcia
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=1df28c23-7efe-310d-2955-432b9a4bb1ad@redhat.com \ --to=mreitz@redhat.com \ --cc=berto@igalia.com \ --cc=kwolf@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: linkBe 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).