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.
This commit is contained in:
Alexander Motin 2013-05-12 09:33:33 +00:00
parent b6dd17329c
commit 60065e47cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250557

View File

@ -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)