From: Wei Liu Subject: Re: [PATCH v2 COLOPre 11/13] tools/libxl: rename remus device to checkpoint device Date: Fri, 12 Jun 2015 14:35:35 +0100 Message-ID: <20150612133534.GR14606@zion.uk.xensource.com> References: <1433734997-26570-1-git-send-email-yanghy@cn.fujitsu.com> <1433734997-26570-12-git-send-email-yanghy@cn.fujitsu.com> <20150612133046.GQ14606@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150612133046.GQ14606@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Hongyang Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, wency@cn.fujitsu.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, eddie.dong@intel.com, xen-devel@lists.xen.org, guijianfeng@cn.fujitsu.com, rshriram@cs.ubc.ca, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, Jun 12, 2015 at 02:30:46PM +0100, Wei Liu wrote: > On Mon, Jun 08, 2015 at 11:43:15AM +0800, Yang Hongyang wrote: > [...] > > > > Signed-off-by: Wen Congyang > > Signed-off-by: Yang Hongyang > > --- > > tools/libxl/Makefile | 2 +- > > tools/libxl/libxl_checkpoint_device.c | 327 ++++++++++++++++++++++++++++++++++ > > tools/libxl/libxl_internal.h | 112 ++++++------ > > tools/libxl/libxl_netbuffer.c | 108 +++++------ > > tools/libxl/libxl_nonetbuffer.c | 10 +- > > tools/libxl/libxl_remus.c | 76 ++++---- > > tools/libxl/libxl_remus_device.c | 327 ---------------------------------- > > tools/libxl/libxl_remus_disk_drbd.c | 52 +++--- > > tools/libxl/libxl_types.idl | 4 +- > > This only thing I need to complain is the change to IDL. > > > .kind = LIBXL__DEVICE_KIND_VBD, > > .setup = drbd_setup, > > .teardown = drbd_teardown, > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > > index 8a3d7ba..375c546 100644 > > --- a/tools/libxl/libxl_types.idl > > +++ b/tools/libxl/libxl_types.idl > > @@ -61,8 +61,8 @@ libxl_error = Enumeration("error", [ > > (-15, "LOCK_FAIL"), > > (-16, "JSON_CONFIG_EMPTY"), > > (-17, "DEVICE_EXISTS"), > > - (-18, "REMUS_DEVOPS_DOES_NOT_MATCH"), > > - (-19, "REMUS_DEVICE_NOT_SUPPORTED"), > > + (-18, "CHECKPOINT_DEVOPS_DOES_NOT_MATCH"), > > + (-19, "CHECKPOINT_DEVICE_NOT_SUPPORTED"), > > You should add two new error numbers. > And in that case you might also need to go through all places to make sure the correct error numbers are return. I.e. old remus code path still returns REMUS error code and new CHECKPOINT code path returns new error code. I merely speak from API backward compatibility point of view. If you think what I suggest doesn't make sense, please let me know. Wei. > Wei. > > > (-20, "VNUMA_CONFIG_INVALID"), > > (-21, "DOMAIN_NOTFOUND"), > > ], value_namespace = "") > > -- > > 1.9.1 > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel