Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/scsipi Pull up 1.126 from trunk: add SCSI_IGNOR...



details:   https://anonhg.NetBSD.org/src/rev/336d309815eb
branches:  netbsd-1-4
changeset: 468125:336d309815eb
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Apr 08 17:08:46 1999 +0000

description:
Pull up 1.126 from trunk: add SCSI_IGNORE_NOT_READY to the flags for
CDIOCCLOSE, so if the drive tries to spin up after the clause and fails
because there's no media, eject(1) doesn't get ENODEV. Closes port-i386/7345.

diffstat:

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

diffs (18 lines):

diff -r a0a956752142 -r 336d309815eb sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c       Thu Apr 08 15:52:42 1999 +0000
+++ b/sys/dev/scsipi/cd.c       Thu Apr 08 17:08:46 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd.c,v 1.124 1999/02/28 17:14:57 explorer Exp $        */
+/*     $NetBSD: cd.c,v 1.124.2.1 1999/04/08 17:08:46 bouyer Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -972,7 +972,7 @@
                return (scsipi_start(cd->sc_link, SSS_STOP, 0));
        case CDIOCCLOSE:
                return (scsipi_start(cd->sc_link, SSS_START|SSS_LOEJ, 
-                   SCSI_IGNORE_MEDIA_CHANGE));
+                   SCSI_IGNORE_NOT_READY | SCSI_IGNORE_MEDIA_CHANGE));
        case DIOCEJECT:
                if (*(int *)addr == 0) {
                        /*



Home | Main Index | Thread Index | Old Index