summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_ioctl.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-02-27 00:03:54 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-02-27 00:03:54 +0000
commit6919f10ec4f9525b5e6429ab03752200ed281967 (patch)
tree32ad0756ba139808ce612f5788c1b9a2f412ffa4 /sys/scsi/scsi_ioctl.c
parent7274582b849a4fb8c605ec43c3a68f5b3c3e2f45 (diff)
Don't print sense info for ioctl's. Let the userland program decide
what to tell the user. Silences cdio and cdrecord while probing media. ok dlg@ marco@ deraadt@
Diffstat (limited to 'sys/scsi/scsi_ioctl.c')
-rw-r--r--sys/scsi/scsi_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c
index a65c41e1fc5..58cc199333a 100644
--- a/sys/scsi/scsi_ioctl.c
+++ b/sys/scsi/scsi_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_ioctl.c,v 1.39 2010/01/04 00:45:58 dlg Exp $ */
+/* $OpenBSD: scsi_ioctl.c,v 1.40 2010/02/27 00:03:53 krw Exp $ */
/* $NetBSD: scsi_ioctl.c,v 1.23 1996/10/12 23:23:17 christos Exp $ */
/*
@@ -128,6 +128,7 @@ scsi_ioc_cmd(struct scsi_link *link, scsireq_t *screq)
xs->flags |= SCSI_DATA_OUT;
}
+ xs->flags |= SCSI_SILENT; /* User is responsible for errors. */
xs->timeout = screq->timeout;
xs->retries = 0; /* user must do the retries *//* ignored */