net: truncate output file when using dump backend
commit6514ed528cd6cf752927b4eb38e64bba84c321ff
authorHervé Poussineau <hpoussin@reactos.org>
Wed, 30 Nov 2011 20:35:37 +0000 (30 21:35 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 20 Dec 2011 21:44:29 +0000 (20 15:44 -0600)
tree83d7c8b90094924b7956323ef9466d7319a6159e
parentbc7c9eccfeb620b0e87b2d0d079d9434c6bef03d
net: truncate output file when using dump backend

This prevents data of a previous run to be seen in the new dump file.

Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net/dump.c