From 60065e47cdd0b62450b8de70d2cc5bd9d339142f Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sun, 12 May 2013 09:33:33 +0000 Subject: [PATCH] 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. --- sys/cam/scsi/scsi_da.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 51d30db378df..93156a6bc399 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -3355,7 +3355,7 @@ daprevent(struct cam_periph *periph, int action) 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)