Back out previous. It has issues with multiple dumps to one tape using

/dev/nrstx, as pointed out by Matthew Jacob.
My problem is probably related to mt using /dev/nrst0 instead of /dev/enrst0
by default.
This commit is contained in:
bouyer 2002-05-03 20:41:17 +00:00
parent 98807c1129
commit b3f8d22993
1 changed files with 3 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: st.c,v 1.153 2002/05/02 12:36:23 bouyer Exp $ */
/* $NetBSD: st.c,v 1.154 2002/05/03 20:41:17 bouyer Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: st.c,v 1.153 2002/05/02 12:36:23 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: st.c,v 1.154 2002/05/03 20:41:17 bouyer Exp $");
#include "opt_scsi.h"
@ -2099,14 +2099,9 @@ st_interpret_sense(xs)
}
/*
* If the device is not open yet, a Not Ready To Ready Transition
* is acceptable. Let generic code handle other ASC/ASQ.
* If the device is not open yet, let generic handle
*/
if ((periph->periph_flags & PERIPH_OPEN) == 0) {
if (key == SKEY_UNIT_ATTENTION &&
st->asc == 0x28 && st->ascq == 0x0) {
return (0);
}
return (retval);
}