migration: Truncate state file in xen-save-devices-state
commitb4deb9bf8d97dbee07781e90e2089c6410ea9098
authorDov Murik <dovmurik@linux.vnet.ibm.com>
Mon, 21 Sep 2020 09:48:30 +0000 (21 09:48 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 25 Sep 2020 11:45:58 +0000 (25 12:45 +0100)
tree214818d68dbd5dd7dc871210ed04be7071e01d37
parent3c0b5dffc1768871960f3d904085e462b9e18a1f
migration: Truncate state file in xen-save-devices-state

When running the xen-save-devices-state QMP command, if the filename
already exists it will be truncated before dumping the devices' state
into it.

Signed-off-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
Message-Id: <20200921094830.114028-1-dovmurik@linux.vnet.ibm.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/savevm.c