From: Markus Armbruster <armbru@redhat.com>
To: Ryan Harper <ryanh@us.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Add qerror message if the 'change' target filename can't be opened
Date: Thu, 25 Mar 2010 20:42:27 +0100 [thread overview]
Message-ID: <m31vf8b330.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <20100325192043.GU27260@us.ibm.com> (Ryan Harper's message of "Thu, 25 Mar 2010 14:20:43 -0500")
Ryan Harper <ryanh@us.ibm.com> writes:
> * Markus Armbruster <armbru@redhat.com> [2010-03-25 11:41]:
>> Ryan Harper <ryanh@us.ibm.com> writes:
>>
>> > Currently when using the change command to switch the file in the cd drive
>> > the command doesn't complain if the file doesn't exit or can't be opened
>> > and the drive keeps the existing image. This patch adds a qerror_report
>> > call to print a message out indicating the failure. This error message
>> > can be used to catch failures.
>> >
>> [...]
>> >
>> > Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
>> > ---
>> > monitor.c | 1 +
>> > 1 files changed, 1 insertions(+), 0 deletions(-)
>> >
>> > diff --git a/monitor.c b/monitor.c
>> > index 0448a70..196c7a6 100644
>> > --- a/monitor.c
>> > +++ b/monitor.c
>> > @@ -1099,6 +1099,7 @@ static int do_change_block(Monitor *mon, const char *device,
>> > return -1;
>> > }
>> > if (bdrv_open2(bs, filename, BDRV_O_RDWR, drv) < 0) {
>> > + qerror_report(QERR_OPEN_FILE_FAILED, filename);
>> > return -1;
>> > }
>> > return monitor_read_bdrv_key_start(mon, bs, NULL, NULL);
>> > --
>>
>> We want this fix for QMP. Without it, we get UndefinedError, and a
>> complaint ifdef CONFIG_DEBUG_MONITOR.
>
> I'm not terribly familiar with the QMP stuff. Are you looking for me to
> fix some some stuff in the QMP bits? Are you just indicating that you
> need this fix for QMP?
The latter.
Thanks for fixing!
next prev parent reply other threads:[~2010-03-25 19:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 14:32 [Qemu-devel] [PATCH] Add qerror message if the 'change' target filename can't be opened Ryan Harper
2010-03-25 16:40 ` Markus Armbruster
2010-03-25 19:20 ` Ryan Harper
2010-03-25 19:42 ` Markus Armbruster [this message]
2010-04-01 18:15 ` Luiz Capitulino
2010-04-01 18:22 ` Luiz Capitulino
2010-04-01 19:14 ` Kevin Wolf
2010-04-01 20:55 ` Luiz Capitulino
2010-04-01 18:23 ` Ryan Harper
2010-04-01 18:31 ` Luiz Capitulino
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=m31vf8b330.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ryanh@us.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.