Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2013 09:33:34 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250557 - head/sys/cam/scsi
Message-ID:  <201305120933.r4C9XYGe032543@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun May 12 09:33:33 2013
New Revision: 250557
URL: http://svnweb.freebsd.org/changeset/base/250557

Log:
  Suppress error printing for "PREVENT ALLOW MEDIUM REMOVAL" on da open.
  Change at r250208 exposed more errors here, hidden before.  The same flag
  is used in cd driver.

Modified:
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Sun May 12 06:20:54 2013	(r250556)
+++ head/sys/cam/scsi/scsi_da.c	Sun May 12 09:33:33 2013	(r250557)
@@ -3355,7 +3355,7 @@ daprevent(struct cam_periph *periph, int
 		     5000);
 
 	error = cam_periph_runccb(ccb, daerror, CAM_RETRY_SELTO,
-	    SF_RETRY_UA | SF_QUIET_IR, softc->disk->d_devstat);
+	    SF_RETRY_UA | SF_NO_PRINT, softc->disk->d_devstat);
 
 	if (error == 0) {
 		if (action == PR_ALLOW)



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