mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil> Reviewed-by: Tom Keiser <tkeiser@sinenomine.net> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
b71f4ffa7c
commit
663185d62d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user