From a81f9237bfa7b2e3a0567a930f3c49234b9a4376 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 2 May 2012 12:07:49 -0500 Subject: [PATCH] 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 --- src/vol/volume.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/vol/volume.c b/src/vol/volume.c index 8f6e83f3f9..9ca566cc0c 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) {