From 44f11a89b321fdf5be009ac0ade159fc63e83982 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 5 Apr 1994 22:08:09 +0000 Subject: [PATCH] Implement MTRETEN (untested). --- sys/dev/scsipi/st.c | 7 +++++-- sys/scsi/st.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sys/dev/scsipi/st.c b/sys/dev/scsipi/st.c index ea3d48faf215..fffc2e2a80ed 100644 --- a/sys/dev/scsipi/st.c +++ b/sys/dev/scsipi/st.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: st.c,v 1.22 1994/04/05 21:59:49 mycroft Exp $ + * $Id: st.c,v 1.23 1994/04/05 22:08:09 mycroft Exp $ */ /* @@ -1159,6 +1159,9 @@ stioctl(dev, cmd, arg, flag) break; case MTNOP: /* no operation, sets status only */ break; + case MTRETEN: /* retension the tape */ + error = st_load(st, LD_RETEN, flags); + break; case MTEOM: /* forward space to end of media */ error = st_chkeod(st, FALSE, &nmarks, flags); if (!error) @@ -1628,7 +1631,7 @@ st_chkeod(st, position, nmarks, flags) } /* - * load/unload (with retension if true) + * load/unload/retension */ int st_load(st, type, flags) diff --git a/sys/scsi/st.c b/sys/scsi/st.c index ea3d48faf215..fffc2e2a80ed 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: st.c,v 1.22 1994/04/05 21:59:49 mycroft Exp $ + * $Id: st.c,v 1.23 1994/04/05 22:08:09 mycroft Exp $ */ /* @@ -1159,6 +1159,9 @@ stioctl(dev, cmd, arg, flag) break; case MTNOP: /* no operation, sets status only */ break; + case MTRETEN: /* retension the tape */ + error = st_load(st, LD_RETEN, flags); + break; case MTEOM: /* forward space to end of media */ error = st_chkeod(st, FALSE, &nmarks, flags); if (!error) @@ -1628,7 +1631,7 @@ st_chkeod(st, position, nmarks, flags) } /* - * load/unload (with retension if true) + * load/unload/retension */ int st_load(st, type, flags)