Red Hat Bugzilla – Bug 484346
xm dump-core does not truncate existing files
Last modified: 2009-12-14 16:21:09 EST
Description of problem:
When xm dump-core is instructed to dump a core to an existing file, the file is not truncated.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start a guest
2. create a file larger than guest's memory, e.g.
dd if=/dev/zero of=dump count=0 bs=1 seek=1G
3. xm dump-core guest dump
The file remains larger than guest's memory
The file has nothing but guest's core dump inside.
Created attachment 331115 [details]
Patch to fix this bug
A test package which fixes this issue (and several others as well) has been
made available at:
Could the reporter try it out and report if it fixes the problem or not?
Thank you for your cooperation.
Cool stuff, it really works. Great job...
(Oh man, why did I ask myself? :-))
Fix built into xen-3.0.3-81.el5
Verified on xen-3.0.3-91.el5
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.