]> xenbits.xensource.com Git - xen.git/commitdiff
remus: fix incorrect error handling for switch_qemu_logdirty in checkpoint code
authorShriram Rajagopalan <rshriram@cs.ubc.ca>
Tue, 12 Apr 2011 12:28:51 +0000 (13:28 +0100)
committerShriram Rajagopalan <rshriram@cs.ubc.ca>
Tue, 12 Apr 2011 12:28:51 +0000 (13:28 +0100)
c/s 22275: "tools: cleanup domain save switch_qemu_logdirty callback"
introduced a whole bunch of error code fixups. In the process, it also
ended up treating the success return code (0) from
switch_qemu_logdirty as an error and vice versa.

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
tools/python/xen/lowlevel/checkpoint/libcheckpoint.c

index f4d3e7fd1a92e5adcb771e37c432dcdf86a78abe..e96dc8f067baf1074e0cdb69a67b6d280edf2d59 100644 (file)
@@ -185,7 +185,7 @@ int checkpoint_start(checkpoint_state* s, int fd,
     hvm = s->domtype > dt_pv;
     if (hvm) {
        flags |= XCFLAGS_HVM;
-       if (!switch_qemu_logdirty(s, 1))
+       if (switch_qemu_logdirty(s, 1))
            return -1;
     }