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 <tkeiser@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Andrew Deason 2012-05-02 12:07:49 -05:00 committed by Derrick Brashear
parent 21ed79aeae
commit a81f9237bf

View File

@ -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:
if (vp->specialStatus) {
*ec = vp->specialStatus;
} else {
*ec = VNOVOL;
}
endloop = 1;
}
if (endloop) {