Date: Sat, 9 Jun 2012 08:41:30 +0000 (UTC) From: Alexander Motin <mav@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: r236799 - stable/8/sys/cam Message-ID: <201206090841.q598fUnj018395@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sat Jun 9 08:41:30 2012 New Revision: 236799 URL: http://svn.freebsd.org/changeset/base/236799 Log: MFC r219241 (by mjacob): Don't automatically send a START UNIT to sequential access devices -- this might cause them to load the tape unintentionally. Modified: stable/8/sys/cam/cam_periph.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/cam/cam_periph.c ============================================================================== --- stable/8/sys/cam/cam_periph.c Sat Jun 9 08:25:39 2012 (r236798) +++ stable/8/sys/cam/cam_periph.c Sat Jun 9 08:41:30 2012 (r236799) @@ -1539,6 +1539,15 @@ camperiphscsisenseerror(union ccb *ccb, case SS_START: { int le; + if (SID_TYPE(&cgd.inq_data) == T_SEQUENTIAL) { + xpt_free_ccb(orig_ccb); + ccb->ccb_h.status |= CAM_DEV_QFRZN; + *action_string = "Will not autostart a " + "sequential access device"; + err_action = SS_FAIL; + error = EIO; + break; + } /* * Send a start unit command to the device, and
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206090841.q598fUnj018395>