diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-04-01 23:34:40 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-04-01 23:34:40 +0000 |
commit | 52e849154e76bf130b289d2e0a27b7c93ff2d932 (patch) | |
tree | 17bd65d6ca7dab91ae8c96cd640de163662748ec /sys/arch/i386 | |
parent | 43d47078afe78091fb9c219fc2a6728d1f8dcacc (diff) |
Cleanup SKEY_NOT_READY logic. Only retry command if it's likely the
condition is going to clear up, which speeds up boot by avoiding
delays in disk matching. Return ENODEV if media is not present, which
avoids trying to spin up disks that are not present. Use ENODEV in
amd64/i386 dkcsum.c to filter failure reports.
Mostly from NetBSD.
ok marco@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/dkcsum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/dkcsum.c b/sys/arch/i386/i386/dkcsum.c index 691f53407cb..da3a9bd67e4 100644 --- a/sys/arch/i386/i386/dkcsum.c +++ b/sys/arch/i386/i386/dkcsum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkcsum.c,v 1.15 2005/01/01 03:07:08 millert Exp $ */ +/* $OpenBSD: dkcsum.c,v 1.16 2005/04/01 23:34:39 krw Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -94,7 +94,7 @@ dkcsumattach() error = (*bdsw->d_open)(dev, FREAD, S_IFCHR, curproc); if (error) { /* XXX What to do here? */ - if (error != EIO) + if (error != ENODEV) printf("dkcsum: open of %s failed (%d)\n", dv->dv_xname, error); continue; |