vol: Pay attention to specialStatus after VAVByVp
[openafs.git] / src / vol / volume.c
index 8f6e83f..9ca566c 100644 (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:
-                   *ec = VNOVOL;
+                   if (vp->specialStatus) {
+                       *ec = vp->specialStatus;
+                   } else {
+                       *ec = VNOVOL;
+                   }
                    endloop = 1;
                }
                if (endloop) {