aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShriram Rajagopalan <rshriram@cs.ubc.ca>2011-04-25 13:29:18 +0100
committerShriram Rajagopalan <rshriram@cs.ubc.ca>2011-04-25 13:29:18 +0100
commitbd88071d945585ba8d1d03ab2a23b0bd37e79c5f (patch)
tree3a08c26371004f294ba0945865c60831d242bbd7
parent51f6a053fde18f0e138f83847148bc2c66e4f2b8 (diff)
downloadxen-bd88071d945585ba8d1d03ab2a23b0bd37e79c5f.tar.gz
xen-bd88071d945585ba8d1d03ab2a23b0bd37e79c5f.tar.bz2
xen-bd88071d945585ba8d1d03ab2a23b0bd37e79c5f.zip
remus: fix incorrect error handling for switch_qemu_logdirty in checkpoint code
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> xen-unstable changeset: 23202:67911039ac94 xen-unstable date: Tue Apr 12 13:28:51 2011 +0100
-rw-r--r--tools/python/xen/lowlevel/checkpoint/libcheckpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/lowlevel/checkpoint/libcheckpoint.c b/tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
index f4d3e7fd1a..e96dc8f067 100644
--- a/tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
+++ b/tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
@@ -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;
}