mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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:
parent
21ed79aeae
commit
a81f9237bf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user