From: Ronnie Sahlberg Date: Wed, 2 May 2007 01:06:58 +0000 (+1000) Subject: change the getnodemap control to a more consistent output for whether a X-Git-Tag: tevent-0.9.20~348^2~2800^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d20a0963199d8e7e51c95641b0031ad04b2d7f2;p=thirdparty%2Fsamba.git change the getnodemap control to a more consistent output for whether a node is connected or not (This used to be ctdb commit 65c5fe53937a17e1fa6de5739cbd01b982dc49bb) --- diff --git a/ctdb/tools/ctdb_control.c b/ctdb/tools/ctdb_control.c index a2cde90bc8b..0b641f9605d 100644 --- a/ctdb/tools/ctdb_control.c +++ b/ctdb/tools/ctdb_control.c @@ -624,10 +624,10 @@ static int control_getnodemap(struct ctdb_context *ctdb, int argc, const char ** printf("Number of nodes:%d\n", nodemap->num); for(i=0;inum;i++){ - printf("vnn:%d %s\n", nodemap->nodes[i].vnn, - nodemap->nodes[i].vnn==vnn?"THIS NODE": + printf("vnn:%d %s%s\n", nodemap->nodes[i].vnn, nodemap->nodes[i].flags&NODE_FLAGS_CONNECTED? - "CONNECTED":"UNAVAILABLE"); + "CONNECTED":"UNAVAILABLE", + nodemap->nodes[i].vnn==vnn?" (THIS NODE)":""); } talloc_free(nodemap); return 0;