Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi in cdclose(), ignore "media change" when call...



details:   https://anonhg.NetBSD.org/src/rev/e077212ca63b
branches:  trunk
changeset: 473264:e077212ca63b
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu May 27 11:19:04 1999 +0000

description:
in cdclose(), ignore "media change" when calling scsipi_prevent(), after
a 'eject -l' some ATAPI drives report this instead of illegal request.

diffstat:

 sys/dev/scsipi/cd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c1aec566ec86 -r e077212ca63b sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c       Thu May 27 09:45:50 1999 +0000
+++ b/sys/dev/scsipi/cd.c       Thu May 27 11:19:04 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd.c,v 1.126 1999/04/08 16:12:31 bouyer Exp $  */
+/*     $NetBSD: cd.c,v 1.127 1999/05/27 11:19:04 bouyer Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -390,7 +390,8 @@
                scsipi_wait_drain(cd->sc_link);
 
                scsipi_prevent(cd->sc_link, PR_ALLOW,
-                   SCSI_IGNORE_ILLEGAL_REQUEST | SCSI_IGNORE_NOT_READY);
+                   SCSI_IGNORE_ILLEGAL_REQUEST | SCSI_IGNORE_MEDIA_CHANGE |
+                   SCSI_IGNORE_NOT_READY);
                cd->sc_link->flags &= ~SDEV_OPEN;
 
                scsipi_wait_drain(cd->sc_link);



Home | Main Index | Thread Index | Old Index