--- /usr/lib/one/mads/one_vmm_kvm.ubuntu-orig.rb 2010-03-26 19:30:51.434615520 +0100 +++ /usr/lib/one/mads/one_vmm_kvm.rb 2010-03-26 19:58:07.475803935 +0100 @@ -112,6 +112,7 @@ end def action_save(args) + touch_checkpoint_file(args[2], args[4]) std_action("SAVE", "save #{args[3]} #{args[4]}", args) end @@ -179,6 +180,18 @@ res[0].close res end + + def touch_checkpoint_file(host, file) + res=Open3.popen3( + "ssh -n #{host} touch #{file} ;"+ + " echo ExitCode: $? 1>&2") + res[0].close + + stdout=res[1].read + stderr=res[2].read + + write_response("TOUCH", stdout, stderr, file) + end def write_response(action, stdout, stderr, args) exit_code=get_exit_code(stderr)