From 7c855bbc44540a77b2fbe0e5c3cb6044210f977e Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Wed, 31 Aug 2005 18:27:32 +0000 Subject: 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@ --- sys/dev/ic/ami.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/dev') 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; -- cgit v1.2.3