summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ami.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-08-31 18:27:32 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-08-31 18:27:32 +0000
commit7c855bbc44540a77b2fbe0e5c3cb6044210f977e (patch)
tree907b197dd34dc0511a872865227f749750362aad /sys/dev/ic/ami.c
parent5f12ab199fa7edf198981ba09a233c19c59e126c (diff)
Remove check that prevents disks that are not in the unused state to move to
hot spare state. This *should* be detected in f/w however there is one known case where it does not work and hence this workaround was committed. By having this in there disks that were removed and reinserted that used to be hotspares show up as unused however the meta data on disk conflicts with this preventing it to be moved to hotspare. OK, commit this, deraadt@
Diffstat (limited to 'sys/dev/ic/ami.c')
-rw-r--r--sys/dev/ic/ami.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index cd9083d7b26..62f81f966d4 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.72 2005/08/31 17:59:09 marco Exp $ */
+/* $OpenBSD: ami.c,v 1.73 2005/08/31 18:27:31 marco Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -2559,9 +2559,6 @@ ami_ioctl_setstate(sc, bs)
off = bs->bs_channel * AMI_MAX_TARGET + bs->bs_target;
- if (p->apd[off].adp_ostatus != AMI_PD_UNCNF)
- goto bail;
-
if (ami_drv_inq(sc, bs->bs_channel, bs->bs_target, 0,
&inqbuf))
goto bail;