summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2011-05-07 10:06:43 +0000
committeravg <avg@FreeBSD.org>2011-05-07 10:06:43 +0000
commit5c9c528165bb0298cc5534bd724b18cd0bcb87cb (patch)
treeac12dd457f26a6d51066fc32156ac86c544440ec /sys/cam
parent52589fb65107aad85fe3a3a1a6a018f5e75598a2 (diff)
downloadFreeBSD-src-5c9c528165bb0298cc5534bd724b18cd0bcb87cb.zip
FreeBSD-src-5c9c528165bb0298cc5534bd724b18cd0bcb87cb.tar.gz
scsi_cd: silence READ_TOC errors in CDIOREADTOCHEADER ioctl
An optical disk may not have a TOC (e.g. for blank media) and userland software may legitimately try to use CDIOREADTOCHEADER to find out about the TOC. Silence from: scsi@ MFC after: 10 days
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_cd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index 3d81800..c1951ff 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -2138,7 +2138,7 @@ cdioctl(struct disk *dp, u_long cmd, void *addr, int flag, struct thread *td)
("trying to do CDIOREADTOCHEADER\n"));
error = cdreadtoc(periph, 0, 0, (u_int8_t *)th,
- sizeof (*th), /*sense_flags*/0);
+ sizeof (*th), /*sense_flags*/SF_NO_PRINT);
if (error) {
free(th, M_SCSICD);
cam_periph_unlock(periph);
OpenPOWER on IntegriCloud