diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-11-07 23:49:33 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-11-07 23:49:33 +0000 |
commit | 1c46dce0d084f885ce776c3cc5eb1d64c622b4b4 (patch) | |
tree | 7a74a964f79d997f3d833991e8cf2ba8e2c05712 /sys/scsi/sd.c | |
parent | 33146c34aef439a7bd65be456cc607e1e4d4dd7a (diff) |
Death to superfluous verbiage. Suppress errors when getting the parameters
for a raw partition like we suppress errors for the other operations on raw
partitions. Replace 'could not get size' with more specific and informative
SC_DEBUG() output. Silences a usb card reader that fgsch@ found. Now attach
message is only 'sdX: drive offline'.
Tested & ok fgsch@
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index a30bc308cb5..8d74761bdd1 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.95 2005/10/10 20:06:12 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.96 2005/11/07 23:49:32 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -408,7 +408,8 @@ sdopen(dev, flag, fmt, p) } /* Load the physical device parameters. */ sc_link->flags |= SDEV_MEDIA_LOADED; - if (sd_get_parms(sd, &sd->params, 0) == SDGP_RESULT_OFFLINE) { + if (sd_get_parms(sd, &sd->params, (rawopen ? SCSI_SILENT : 0)) + == SDGP_RESULT_OFFLINE) { sc_link->flags &= ~SDEV_MEDIA_LOADED; error = ENXIO; goto bad; |