Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2011 07:08:53 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r222005 - stable/8/sys/cam/scsi
Message-ID:  <201105170708.p4H78r7K017406@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue May 17 07:08:53 2011
New Revision: 222005
URL: http://svn.freebsd.org/changeset/base/222005

Log:
  MFC r221585: scsi_cd: silence READ_TOC errors in CDIOREADTOCHEADER ioctl

Modified:
  stable/8/sys/cam/scsi/scsi_cd.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/cam/scsi/scsi_cd.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_cd.c	Tue May 17 06:36:32 2011	(r222004)
+++ stable/8/sys/cam/scsi/scsi_cd.c	Tue May 17 07:08:53 2011	(r222005)
@@ -2125,7 +2125,7 @@ cdioctl(struct disk *dp, u_long cmd, voi
 				  ("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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105170708.p4H78r7K017406>