diff options
author | joerg <joerg@FreeBSD.org> | 1996-06-16 19:54:02 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-06-16 19:54:02 +0000 |
commit | 2ed1eb601cc4e9be6c14bf238d58b578b06a4b15 (patch) | |
tree | 2eb5fb596b22791ba46c61d44d06ab3227e28976 /sys/scsi/scsi_driver.c | |
parent | fe0ca9a717fce956729d30cad29ae708edee6a5a (diff) | |
download | FreeBSD-src-2ed1eb601cc4e9be6c14bf238d58b578b06a4b15.zip FreeBSD-src-2ed1eb601cc4e9be6c14bf238d58b578b06a4b15.tar.gz |
Make sure to update the SDEV_MEDIA_LOADED flag also when working on
the control device.
Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
Diffstat (limited to 'sys/scsi/scsi_driver.c')
-rw-r--r-- | sys/scsi/scsi_driver.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/scsi_driver.c b/sys/scsi/scsi_driver.c index 6a35202..3af475f 100644 --- a/sys/scsi/scsi_driver.c +++ b/sys/scsi/scsi_driver.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_driver.c,v 1.14 1996/03/10 07:13:08 gibbs Exp $ + * $Id: scsi_driver.c,v 1.15 1996/04/07 17:32:41 bde Exp $ * */ #include <sys/types.h> @@ -130,7 +130,10 @@ struct scsi_device *device) * entry. */ if (SCSI_CONTROL(dev) || (device->dev_open == 0)) + { + scsi_test_unit_ready(sc_link, SCSI_SILENT); errcode = 0; + } else errcode = (*device->dev_open)(dev, flags, fmt, p, sc_link); |