qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/2] qga: flush explicitly when needed
@ 2015-11-25 12:59 marcandre.lureau
  2015-11-25 12:59 ` [Qemu-devel] [PATCH v3 1/2] " marcandre.lureau
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: marcandre.lureau @ 2015-11-25 12:59 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, mdroth

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Without this change, a write() followed by a read() may lose the
previously written content, as shown in the following test.

v2->v3:
- use a RwState tristate enum
- reset the state on flush & seek

v1->v2:
- replace guchar with unsigned char
- fix implicitly/explictly
- comment space fix

Marc-André Lureau (2):
  qga: flush explicitly when needed
  tests: add file-write-read test

 qga/commands-posix.c | 37 ++++++++++++++++++++
 tests/test-qga.c     | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 130 insertions(+), 2 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-11-25 17:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25 12:59 [Qemu-devel] [PATCH v3 0/2] qga: flush explicitly when needed marcandre.lureau
2015-11-25 12:59 ` [Qemu-devel] [PATCH v3 1/2] " marcandre.lureau
2015-11-25 15:10   ` Laszlo Ersek
2015-11-25 15:58   ` Eric Blake
2015-11-25 12:59 ` [Qemu-devel] [PATCH v3 2/2] tests: add file-write-read test marcandre.lureau
2015-11-25 16:02   ` Eric Blake
2015-11-25 16:21     ` Michael Roth
2015-11-25 16:41       ` Eric Blake
2015-11-25 16:46         ` Michael Roth
2015-11-25 17:10           ` Eric Blake
2015-11-25 17:14             ` Michael Roth
2015-11-25 17:18               ` Eric Blake
2015-11-25 17:22                 ` Michael Roth
2015-11-25 16:46 ` [Qemu-devel] [PATCH v3 0/2] qga: flush explicitly when needed Michael Roth
2015-11-25 16:52   ` Marc-André Lureau

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).