]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
migration: Add more specific error code/message on migration abort
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Dec 2011 13:58:38 +0000 (14:58 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Dec 2011 15:38:26 +0000 (16:38 +0100)
commit8fb2aeb662c11e131b42a42245064dbb881659b7
tree6d52014537e2bb20093844d6344d9512c0806c5b
parentd99fe011a2bbf3b42f482edb7c86c60b4f8ccd09
migration: Add more specific error code/message on migration abort

A generic error code was returned, if the user aborted a migration job.
This made it hard to distinguish between a user requested abort and an
error that might have occured. This patch introduces a new error code,
which is returned in the specific case of a user abort, while leaving
all other failures with their existing code. This makes it easier to
distinguish between failure while mirgrating and an user requested
abort.

 * include/libvirt/virterror.h: - add new error code
 * src/util/virterror.c: - add message for the new error code
 * src/qemu/qemu_migration.h: - Emit operation aborted error instead of
                                operation failed, on migration abort
include/libvirt/virterror.h
src/qemu/qemu_migration.c
src/util/virterror.c