Hide Forgot
Description of problem: It is easy to have each screenshot ~2Mb. With that kind of size, /var can be quickly filled up Version-Release number of selected component (if applicable): current 0.9+ How reproducible: 100% Steps to Reproduce: 1. Use virDomainScreenshot() 2. repeat until /var is full. Expected results: virDomainScreenshot() shouldn't fill /var At the minimum, it could perhaps reuse the same file?
The screenshot file should never persist in /var, rather we should be unlinking it immediately after creating it. Some aspect of this must be broken...
Patch sent upstream for review: https://www.redhat.com/archives/libvir-list/2011-August/msg00091.html
First patch now upstream: commit d68b97c8a641ca3d56c7031eb49526174257280b Author: Michal Privoznik <mprivozn> Date: Tue Aug 2 17:50:18 2011 +0200 qemu: Unlink temporary file on failure Although virFDStreamOpenFile will unlink it once opened, when we hit error path, we must unlink it by hand. But we may want to also use this second proposed patch: https://www.redhat.com/archives/libvir-list/2011-August/msg00103.html
Fixed in libvirt-0.9.4