kvm-xfstests: unmount /results before shutting down
PATCH 1/1 kvm-xfstests: unmount /results before shutting down
From: Eric Biggers <[email protected]>
kvm-xfstests shuts down the VM with 'poweroff -f', which with old versions of systemd's 'poweroff' command (including the version included in Debian Jessie) does not call sync(). This could cause data written to the /results filesystem to be lost. Work around this by unmounting /results before shutting down.
--- kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot | 1 + 1 file changed, 1 insertion(+)
kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot +1 -0
@@ -92,6 +92,7 @@ then /bin/rm -f /run/gce-finalize-wait else /root/runtests.sh + umount /results poweroff -f > /dev/null 2>&1 fi else
Signature · 1 line
2.13.0.rc0.306.g87b477812d-goog
Theodore Ts'o
AppliedQuoted 9 lines · Eric Biggers
From: Eric Biggers <[email protected]>
kvm-xfstests shuts down the VM with 'poweroff -f', which with old versions of systemd's 'poweroff' command (including the version included in Debian Jessie) does not call
sync(). This could cause data written to the /results filesystem to be lost. Work around this by unmounting /results before shutting down.Signed-off-by Eric Biggers <[email protected]>
Thanks, applied.
- Ted