Red Hat Bugzilla – Bug 831174
qemu-ga default statedir should be /run
Last modified: 2014-06-17 23:17:06 EDT
Description of problem:
qemu-ga stores the fsfreeze state in /tmp. For RHEL7, /run would be a better match.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run "qemu-ga --help"
The default statedir is shown to be /tmp.
The default statedir is shown to be /run.
Upstream we should probably make the default changeable at configure-time, so that the RHEL7 patch would touch the spec file only.
Patches posted upstream and have already been accepted by qemu-ga's maintainer:
Merged upstream (commits 785c23ae5c and 6a3c8c14c). To test this, run latest qemu-ga in the guest, freeze the FS and do:
# ls -la /var/run/ (or /usr/local/var/run)
And check if a file named qga.state.isfrozen has been created.
*** Bug 836275 has been marked as a duplicate of this bug. ***
Verify this bug as follow version:
# uname -r
# rpm -q qemu-kvm
1.# qemu-ga --help
-t, --statedir specify dir to store state information (absolute paths
only, default is /var/run)
#nc -U /tmp/qga.sock
3. check state file
# ll /var/run/qga.state
-rw-r--r--. 1 root root 25 Jan 25 22:33 /var/run/qga.state
After step 1:The Paths is /var/run
After step 3: A file named qga.state.isfrozen has been created.
According to above test ,this bug fixed.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.