From: Markus Armbruster <armbru@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/5] block/raw-posix: Employ error parameter
Date: Fri, 11 Oct 2013 13:01:43 +0200 [thread overview]
Message-ID: <87iox4hy08.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <20131011090740.GA3112@dhcp-200-207.str.redhat.com> (Kevin Wolf's message of "Fri, 11 Oct 2013 11:07:40 +0200")
Kevin Wolf <kwolf@redhat.com> writes:
> Am 10.10.2013 um 15:44 hat Max Reitz geschrieben:
>> Make use of the error parameter in the opening and creating functions in
>> block/raw-posix.c.
>>
>> Signed-off-by: Max Reitz <mreitz@redhat.com>
>> ---
>> block/raw-posix.c | 60
>> ++++++++++++++++++++++++++++++++++++++++++++-----------
>> 1 file changed, 48 insertions(+), 12 deletions(-)
>
> You forgot updating a raw_open_common() caller which is compiled out
> on your system. Builds will fail on FreeBSD now.
>
>> @@ -1059,12 +1069,15 @@ static int raw_create(const char *filename, QEMUOptionParameter *options,
>> fd = qemu_open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
>> 0644);
>> if (fd < 0) {
>> + error_setg_errno(errp, errno, "Could not create file");
>> result = -errno;
>
> Doesn't error_setg_errno() change the value of errno? (More instances
> follow.)
It does. Easy enough to avoid if it turns out to be inconvenient.
next prev parent reply other threads:[~2013-10-11 11:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 13:43 [Qemu-devel] [PATCH 0/5] block: Employ error parameter Max Reitz
2013-10-10 13:44 ` [Qemu-devel] [PATCH 1/5] block/raw_bsd: " Max Reitz
2013-10-10 13:44 ` [Qemu-devel] [PATCH 2/5] block/raw-posix: " Max Reitz
2013-10-11 9:07 ` Kevin Wolf
2013-10-11 11:01 ` Markus Armbruster [this message]
2013-10-11 9:26 ` [Qemu-devel] [PATCH v2 " Max Reitz
2013-10-11 9:37 ` [Qemu-devel] [PATCH v3 " Max Reitz
2013-10-11 9:45 ` Kevin Wolf
2013-10-10 13:44 ` [Qemu-devel] [PATCH 3/5] block/raw-win32: " Max Reitz
2013-10-10 17:17 ` Eric Blake
2013-10-10 13:44 ` [Qemu-devel] [PATCH 4/5] blkdebug: " Max Reitz
2013-10-10 13:44 ` [Qemu-devel] [PATCH 5/5] blkverify: " Max Reitz
2013-10-10 17:18 ` [Qemu-devel] [PATCH 0/5] block: " Eric Blake
2013-10-11 9:33 ` Kevin Wolf
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=87iox4hy08.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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.