AR_S_DEGRADED
if (!(rdp->status & AR_S_DEGRADED) || !(rdp->status & AR_S_READY))
if (!(rdp->status & AR_S_DEGRADED) || !(rdp->status & AR_S_READY))
raid->status |= AR_S_DEGRADED;
raid->status |= AR_S_DEGRADED;
raid->status |= AR_S_DEGRADED;
if (rdp->status & AR_S_DEGRADED)
switch (rdp->status & (AR_S_READY | AR_S_DEGRADED | AR_S_REBUILDING)) {
case AR_S_READY | AR_S_DEGRADED: return "DEGRADED";
case AR_S_READY | AR_S_DEGRADED | AR_S_REBUILDING: return "REBUILDING";
if (rdp->status & AR_S_DEGRADED) {
rdp->status &= ~AR_S_DEGRADED;
rdp->status |= AR_S_DEGRADED;
rdp->status |= AR_S_DEGRADED;
else if (rdp->status & AR_S_DEGRADED) {