History log of /freebsd-9.3-release/usr.bin/mt/mt.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 229181 01-Jan-2012 dim

MFC r228619:

In usr.bin/mt/mt.c, the c_code member of struct commands should really
be an unsigned long, since it will contain values of ioctl request
codes. On 64-bit arches, these will not fit into an int.


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 152396 13-Nov-2005 dwmalone

Const poision, deregister and use ANSI definitions.


# 128069 09-Apr-2004 mux

Backout previous commit. It seems this comment applied to something
else than I thought, and thus really needs to go away.

Noticed by: ru


# 128053 09-Apr-2004 mux

Reintroduce a comment that was wrongly removed in revision 1.34.


# 126972 14-Mar-2004 ru

Catch up with the removal of the wt(4) driver.


# 105155 15-Oct-2002 joerg

Add information about the SDLT density codes.

Submitted by: "Stewart MacLund" <sundie@lunaticfringe.org>
MFC after: 1 week


# 99653 09-Jul-2002 joerg

Add definitions for the industry-standard DLT density codes.

Obtained from: Quantum DLT8000 manual
MFC after: 1 week


# 94505 12-Apr-2002 charnier

Make `make WARNS=3' succeed, notably, use %d to printf daddr_t value.
Use `.Nm Ns .' instead of `.Nm .' Add FBSDID. Do not put spaces inside []
in usage string.


# 92921 21-Mar-2002 imp

remove __P


# 92764 20-Mar-2002 phk

Unifdef __FreeBSD__

MD5 checksum of binary unchanged.


# 71311 20-Jan-2001 mjacob

Print out resid portion of MTIOCGET returned data.


# 69248 27-Nov-2000 kris

Constify


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 46928 10-May-1999 mjacob

add and document seteotmodel and geteotmodel commands


# 44644 10-Mar-1999 mjacob

Fixes alignment of blocksize field to be prettier if
longest density code && density name is used.
Obtained from: Ken Merry


# 44618 09-Mar-1999 mjacob

get rid of space padding for compression


# 44397 02-Mar-1999 mjacob

Print actual density code as well as string for density- I dunno about others,
but I sure remember 0x15 easier than 'ECMA 17'. Also handle density codes
0 (default) and 0x7f ('same') as special cases.


# 43629 05-Feb-1999 mjacob

Print relative (mt_fileno, mt_blkno) position, if known.
Print driver state if not NIL.


# 42010 22-Dec-1998 mjacob

Print out latched cdb's correlated to latched errors in MTIOCERRSTAT case.

Complete the addition of the setmark support
(from Martin.Birgmeier@aon.at).


# 41945 19-Dec-1998 mjacob

add in new errstat subcommand (MTIOCSERRSTAT)


# 41925 18-Dec-1998 mjacob

Made changes suggested by bruce, plus a couple of others which made -Wall work.
Obtained from:bde@freebsd.org


# 41913 18-Dec-1998 mjacob

1) Clarify that a weof count of zero is allowed (flush buffers).
2) Add in the set of {sethpos,setspos,rdhpos,rdspos) commands to implement the
Hardware && SCSI Logical Block position ioctls.


# 39913 03-Oct-1998 dfr

Don't bother trying to support Wangtek tapes on the alpha.


# 39260 15-Sep-1998 gibbs

Augment compression and blocksize support. Update table of known densities.


# 35305 19-Apr-1998 phk

mt should report the compression status.

PR: 5276
Reviewed by: phk
Submitted by: Matt Dillon <dillon@best.net>


# 28492 21-Aug-1997 joerg

Implement "eod" as an alias for "eom". HP-UX uses this name, for
example.

Also cleaned up the man page a little.


# 27752 29-Jul-1997 charnier

Use err(3) instead of local redefinition.


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 23693 11-Mar-1997 peter

Merge from Lite2


# 14176 21-Feb-1996 joerg

. cast the error and status registers properly to (unsigned short),
to avoid misinterpreting the 0x8000 bit as a negative sign,

. use the <machine/wtio.h> register def's to print them.


# 13401 12-Jan-1996 joerg

Rename the `retens' command into `retension', to follow existing de-facto
standards.


# 13348 08-Jan-1996 joerg

Add `retens', the user frontend for MTRETENS.


# 11608 21-Oct-1995 bde

Return early in printreg() when the pointer is NULL. For FreeBSD, the
strings describing the drive status and error bits are so deficient
that the pointer is always NULL.

Reported by: Philippe Charnier <charnier@lirmm.fr>


# 9541 16-Jul-1995 joerg

Remove the dangerous "eof" command that used to be an alias for "weof"
but usually got confused with "eom". It didn't ring the warning bell
saying: "You are probably going to mark your whole tape as deleted
right now."

A warning message pointing to "weof" and "eom" is issued instead.


# 7929 18-Apr-1995 joerg

Make mt(1) orthogonal: now that we print the densities as strings
instead of hex, make it accept density names for input, too.


# 7913 17-Apr-1995 joerg

Round #1 of my st(1) -> mt(1) merge. All the commands should be
covered now, and i've attempted to give textual representations
instead of magic numbers.

The st(4) driver still misses some pieces; i'm going to implement the
EOM functionality RSN.

Any takers for the MTCOMP command? Seems to have never been implemented.


# 3964 28-Oct-1994 jkh

Andreas Klemm's tape erase patches from 1.1.5.1.
Submitted by: andreas


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources