From: Andrew Deason Date: Thu, 3 May 2012 17:40:40 +0000 (-0500) Subject: vos setaddrs: notice unexpected errors X-Git-Tag: openafs-stable-1_8_0pre1~2466 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=663185d62df501fb9d7a18e6ef329e4f53aa8854 vos setaddrs: notice unexpected errors Currently 'vos setaddrs' only prints a message and errors out if the VL_RegisterAddrs call fails with certain error codes (VL_MULTIPADDR and RXGEN_OPCODE). But if we get something else like an access error, we should of course print that out, instead of reporting success. Change-Id: Id90c65604289651d9f20fb1ab2c706446162f324 Reviewed-on: http://gerrit.openafs.org/7322 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Tom Keiser Reviewed-by: Derrick Brashear --- diff --git a/src/volser/vos.c b/src/volser/vos.c index 4d145ab..6c56d55 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -5450,13 +5450,13 @@ SetAddrs(struct cmd_syndesc *as, void *arock) if (vcode) { if (vcode == VL_MULTIPADDR) { fprintf(STDERR, "vos: VL_RegisterAddrs rpc failed; The IP address exists on a different server; repair it\n"); - PrintError("", vcode); - return vcode; } else if (vcode == RXGEN_OPCODE) { fprintf(STDERR, "vlserver doesn't support VL_RegisterAddrs rpc; ignored\n"); - PrintError("", vcode); - return vcode; + } else { + fprintf(STDERR, "vos: VL_RegisterAddrs rpc failed\n"); } + PrintError("", vcode); + return vcode; } if (verbose) { fprintf(STDOUT, "vos: Changed UUID with addresses:\n");