summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-24 23:04:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-24 23:04:35 +0000
commit282915889f29f9006f7ea34e5b3e0e6d46b267ad (patch)
treea4f52076daa57718772ce0cc8017f4e467ae2c3e /sys/arch
parent8b56e74eabc5db70ca1c44b1b971d1b09fc21c4e (diff)
silently ignore EIO on a disk, since this typically means it is
removable media, and guess what, it's probably been removed.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/dkcsum.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/dkcsum.c b/sys/arch/i386/i386/dkcsum.c
index 34966196de1..9ec30def28d 100644
--- a/sys/arch/i386/i386/dkcsum.c
+++ b/sys/arch/i386/i386/dkcsum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkcsum.c,v 1.7 1998/02/22 21:35:26 niklas Exp $ */
+/* $OpenBSD: dkcsum.c,v 1.8 1999/07/24 23:04:34 deraadt Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -95,8 +95,9 @@ dkcsumattach()
error = (*bdsw->d_open)(dev, FREAD, S_IFCHR, curproc);
if (error) {
/* XXX What to do here? */
- printf("dkcsum: open of %s failed (%d)\n",
- dv->dv_xname, error);
+ if (error != EIO)
+ printf("dkcsum: open of %s failed (%d)\n",
+ dv->dv_xname, error);
continue;
}