From b4838ee1817939fdb2ae083508222fdaf40d6382 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Tue, 10 Mar 2009 14:18:29 +0000 Subject: Rearrange physical drive state bits checking so that bioctl gets a correct state value. --- sys/dev/pci/ips.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 92ce3634860..b7450ea12c4 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.55 2009/03/10 14:07:44 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.56 2009/03/10 14:18:28 grange Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Alexander Yurchenko @@ -995,12 +995,12 @@ ips_ioctl_disk(struct ips_softc *sc, struct bioc_disk *bd) sizeof(dev->devid))); if (dev->state & IPS_DVS_PRESENT) { - if (dev->state & IPS_DVS_REBUILD) - bd->bd_status = BIOC_SDREBUILD; - if (dev->state & IPS_DVS_SPARE) - bd->bd_status = BIOC_SDHOTSPARE; if (dev->state & IPS_DVS_MEMBER) bd->bd_status = BIOC_SDONLINE; + if (dev->state & IPS_DVS_SPARE) + bd->bd_status = BIOC_SDHOTSPARE; + if (dev->state & IPS_DVS_REBUILD) + bd->bd_status = BIOC_SDREBUILD; } else { bd->bd_status = BIOC_SDOFFLINE; } -- cgit v1.2.3