From: Eric Blake <eblake@redhat.com>
To: Michael Roth <mdroth@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [Qemu-devel] [PULL for-2.5 3/6] qga: flush explicitly when needed
Date: Wed, 25 Nov 2015 16:45:44 -0700 [thread overview]
Message-ID: <56564828.2060503@redhat.com> (raw)
In-Reply-To: <1448491660-11890-4-git-send-email-mdroth@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
On 11/25/2015 03:47 PM, Michael Roth wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> According to the specification:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/fopen.html
>
> "the application shall ensure that output is not directly followed by
> input without an intervening call to fflush() or to a file positioning
> function (fseek(), fsetpos(), or rewind()), and input is not directly
> followed by output without an intervening call to a file positioning
> function, unless the input operation encounters end-of-file."
>
> Without this change, an fwrite() followed by an fread() may lose the
> previously written content, as shown in the following test.
>
> Fixes:
> https://bugzilla.redhat.com/show_bug.cgi?id=1210246
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> * don't confuse {write,read}() with f{write,read}() in
> commit msg (Laszlo)
> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> ---
Looks like you lost Marc-Andre's S-o-b :(
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-11-25 23:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 22:47 [Qemu-devel] [PULL for-2.5 0/6] qemu-ga patch queue for 2.5 Michael Roth
2015-11-25 22:47 ` [Qemu-devel] [PULL for-2.5 1/6] makefile: fix qemu-ga make install for --disable-tools Michael Roth
2015-11-25 22:47 ` [Qemu-devel] [PULL for-2.5 2/6] qga: gspawn() console helper to Windows guest agent msi build Michael Roth
2015-11-25 22:47 ` [Qemu-devel] [PULL for-2.5 3/6] qga: flush explicitly when needed Michael Roth
2015-11-25 23:45 ` Eric Blake [this message]
2015-11-25 22:47 ` [Qemu-devel] [PULL for-2.5 4/6] tests: add file-write-read test Michael Roth
2015-11-25 22:47 ` [Qemu-devel] [PULL for-2.5 5/6] qga: Better mapping of SEEK_* in guest-file-seek Michael Roth
2015-11-25 22:47 ` [Qemu-devel] [PULL for-2.5 6/6] qga: added another non-interactive gspawn() helper file Michael Roth
2015-11-25 23:47 ` [Qemu-devel] [PULL for-2.5 0/6] qemu-ga patch queue for 2.5 Eric Blake
2015-11-26 0:02 ` Michael Roth
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=56564828.2060503@redhat.com \
--to=eblake@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.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 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.