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/amd64 | |
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/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/dkcsum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/dkcsum.c b/sys/arch/amd64/amd64/dkcsum.c index 0c060144d74..8817d7cb58d 100644 --- a/sys/arch/amd64/amd64/dkcsum.c +++ b/sys/arch/amd64/amd64/dkcsum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkcsum.c,v 1.4 2005/01/01 03:07:08 millert Exp $ */ +/* $OpenBSD: dkcsum.c,v 1.5 2005/04/01 23:34:38 krw Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -95,7 +95,7 @@ dkcsumattach(void) 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; |