SCCS-vsn: sys/vax/uba/tm.c 7.11
SCCS-vsn: sys/vax/uba/tmscp.c 7.12
SCCS-vsn: sys/vax/uba/ts.c 7.11
SCCS-vsn: sys/vax/uba/ut.c 7.9
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)tm.c 7.10 (Berkeley) %G%
+ * @(#)tm.c 7.11 (Berkeley) %G%
register struct te_softc *sc = &te_softc[teunit];
register struct buf *bp = &ctmbuf[TMUNIT(dev)];
register callcount;
register struct te_softc *sc = &te_softc[teunit];
register struct buf *bp = &ctmbuf[TMUNIT(dev)];
register callcount;
struct mtop *mtop;
struct mtget *mtget;
/* we depend of the values and order of the MT codes here */
struct mtop *mtop;
struct mtget *mtget;
/* we depend of the values and order of the MT codes here */
if ((bp->b_flags&B_ERROR) || sc->sc_erreg&TMER_BOT)
break;
}
if ((bp->b_flags&B_ERROR) || sc->sc_erreg&TMER_BOT)
break;
}
+ if (bp->b_flags&B_ERROR)
+ if ((error = bp->b_error)==0)
+ return (EIO);
+ return (error);
case MTIOCGET:
mtget = (struct mtget *)data;
case MTIOCGET:
mtget = (struct mtget *)data;
-/* @(#)tmscp.c 7.11 (Berkeley) %G% */
+/* @(#)tmscp.c 7.12 (Berkeley) %G% */
#ifndef lint
static char *sccsid = "@(#)tmscp.c 1.24 (ULTRIX) 1/21/86";
#ifndef lint
static char *sccsid = "@(#)tmscp.c 1.24 (ULTRIX) 1/21/86";
register struct uba_device *ui;
register struct tms_info *tms;
int fcount; /* number of files (or records) to space */
register struct uba_device *ui;
register struct tms_info *tms;
int fcount; /* number of files (or records) to space */
register struct mtop *mtop; /* mag tape cmd op to perform */
register struct mtget *mtget; /* mag tape struct to get info in */
register struct mtop *mtop; /* mag tape cmd op to perform */
register struct mtget *mtget; /* mag tape struct to get info in */
if (bp->b_flags & B_ERROR) /* like hitting BOT */
break;
}
if (bp->b_flags & B_ERROR) /* like hitting BOT */
break;
}
+ if (bp->b_flags&B_ERROR)
+ if ((error = bp->b_error)==0)
+ return (EIO);
+ return (error);
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ts.c 7.10 (Berkeley) %G%
+ * @(#)ts.c 7.11 (Berkeley) %G%
register struct ts_softc *sc = &ts_softc[tsdinfo[tsunit]->ui_ctlr];
register struct buf *bp = &ctsbuf[TSUNIT(dev)];
register int callcount;
register struct ts_softc *sc = &ts_softc[tsdinfo[tsunit]->ui_ctlr];
register struct buf *bp = &ctsbuf[TSUNIT(dev)];
register int callcount;
struct mtop *mtop;
struct mtget *mtget;
/* we depend of the values and order of the MT codes here */
struct mtop *mtop;
struct mtget *mtget;
/* we depend of the values and order of the MT codes here */
sc->sc_ts.t_sts.s_xs0&TS_BOT)
break;
}
sc->sc_ts.t_sts.s_xs0&TS_BOT)
break;
}
+ if (bp->b_flags&B_ERROR)
+ if ((error = bp->b_error)==0)
+ return (EIO);
+ return (error);
case MTIOCGET:
mtget = (struct mtget *)data;
case MTIOCGET:
mtget = (struct mtget *)data;
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ut.c 7.8 (Berkeley) %G%
+ * @(#)ut.c 7.9 (Berkeley) %G%
register struct tj_softc *sc = &tj_softc[TJUNIT(dev)];
register struct buf *bp = &cutbuf[UTUNIT(dev)];
register callcount;
register struct tj_softc *sc = &tj_softc[TJUNIT(dev)];
register struct buf *bp = &cutbuf[UTUNIT(dev)];
register callcount;
struct mtop *mtop;
struct mtget *mtget;
/* we depend of the values and order of the MT codes here */
struct mtop *mtop;
struct mtget *mtget;
/* we depend of the values and order of the MT codes here */
if ((bp->b_flags&B_ERROR) || (sc->sc_dsreg&UTDS_BOT))
break;
}
if ((bp->b_flags&B_ERROR) || (sc->sc_dsreg&UTDS_BOT))
break;
}
+ if (bp->b_flags&B_ERROR)
+ if ((error = bp->b_error)==0)
+ return (EIO);
+ return (error);
case MTIOCGET:
mtget = (struct mtget *)data;
case MTIOCGET:
mtget = (struct mtget *)data;