qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] net: fix some problems with dump backend
@ 2011-11-30 20:35 Hervé Poussineau
  2011-11-30 20:35 ` [Qemu-devel] [PATCH 1/2] net: truncate output file when using " Hervé Poussineau
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Hervé Poussineau @ 2011-11-30 20:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: Hervé Poussineau

This small patchset fixes some problems I've found while using
the dump backend.
At least first patch may be considered for 1.0.

Changes v1->v2:
- Update patches descriptions

Hervé Poussineau (2):
  net: truncate output file when using dump backend
  net: store guest timestamp in dump file instead of time since guest
    startup

 net/dump.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

-- 
1.7.6.3

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Qemu-devel] [PATCH 1/2] net: truncate output file when using dump backend
@ 2011-11-06 21:52 Hervé Poussineau
  2011-11-07 10:08 ` Stefan Hajnoczi
  0 siblings, 1 reply; 7+ messages in thread
From: Hervé Poussineau @ 2011-11-06 21:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Hervé Poussineau


Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 net/dump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/dump.c b/net/dump.c
index 0d0cbb2..8132411 100644
--- a/net/dump.c
+++ b/net/dump.c
@@ -106,7 +106,7 @@ static int net_dump_init(VLANState *vlan, const char *device,
     DumpState *s;
     int fd;
 
-    fd = open(filename, O_CREAT | O_WRONLY | O_BINARY, 0644);
+    fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY | O_BINARY, 0644);
     if (fd < 0) {
         error_report("-net dump: can't open %s", filename);
         return -1;
-- 
1.7.6.3

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

end of thread, other threads:[~2011-12-20 22:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 20:35 [Qemu-devel] [PATCH v2 0/2] net: fix some problems with dump backend Hervé Poussineau
2011-11-30 20:35 ` [Qemu-devel] [PATCH 1/2] net: truncate output file when using " Hervé Poussineau
2011-11-30 20:35 ` [Qemu-devel] [PATCH 2/2] net: store guest timestamp in dump file instead of time since guest startup Hervé Poussineau
2011-12-01  8:02 ` [Qemu-devel] [PATCH v2 0/2] net: fix some problems with dump backend Stefan Hajnoczi
2011-12-20 22:17 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2011-11-06 21:52 [Qemu-devel] [PATCH 1/2] net: truncate output file when using " Hervé Poussineau
2011-11-07 10:08 ` Stefan Hajnoczi

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