From: Andrew Deason Date: Wed, 2 May 2012 17:07:49 +0000 (-0500) Subject: vol: Pay attention to specialStatus after VAVByVp X-Git-Tag: upstream/1.8.0_pre1^2~2432 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a81f9237bfa7b2e3a0567a930f3c49234b9a4376;p=packages%2Fo%2Fopenafs.git vol: Pay attention to specialStatus after VAVByVp attach2/VAttachVolumeByVp_r do not alter the yielded error code according to specialStatus. So, pay attention to specialStatus after receiving an error from VAttachVolumeByVp_r, to ensure we respond with the correct error code. Change-Id: I59e977dd1f0949f8fe5670c7a52429acbfb7d7e9 Reviewed-on: http://gerrit.openafs.org/7303 Reviewed-by: Tom Keiser Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/vol/volume.c b/src/vol/volume.c index 8f6e83f3f..9ca566cc0 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -4108,9 +4108,17 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, if (!vp->pending_vol_op) { endloop = 1; } + if (vp->specialStatus) { + *ec = vp->specialStatus; + } break; + default: - *ec = VNOVOL; + if (vp->specialStatus) { + *ec = vp->specialStatus; + } else { + *ec = VNOVOL; + } endloop = 1; } if (endloop) {