⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 st.4

📁 早期freebsd实现
💻 4
字号:
.\" Copyright (c) 1990, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" This code is derived from software contributed to Berkeley by.\" the Systems Programming Group of the University of Utah Computer.\" Science Department..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)st.4	8.2 (Berkeley) 11/30/93.\".Dd November 30, 1993.Dt ST 4 hp300.Os.Sh NAME.Nm \&st.Nd.Tn CCS SCSItape driver.Sh SYNOPSIS.Cd "tape st0 at scsi? slave ?".Sh DESCRIPTIONThe.Nm \&stdriver was written especially to support the Exabyte.Tn EXB-8200 8MMCartridge Tape Subsystem.  It has several extensions specific to the Exabyte,but should support other tape drives as long has they followthe.Tn ANSI SCSI-Ispecification.  Besides extensive use withan Exabyte, the driver has been tested with anArchive.Tn QIC-24tape drive.The.Nm \&sttape interface provides a standard tape drive interface as described in.Xr mtio 4with the following exceptions:.Bl -enum.ItDensity is dependent on device type.  Current Exabyte hardware hasonly one density. The.Tn EXB-8500drive, when released, will have a highdensity format of.Tn 5.6GB .On an Archive.Tn QIC-24drive the driver reads both.Tn QIC-11and.Tn QIC-24formatsbut writes only.Tn QIC-24 ..ItOnly the ``raw'' interface is supported..El.PpSpecial Exabyte Support:.PpThe.Dv MTIOCGET.Xr ioctl 2call on an Exabyte returns this structure:.Bd -literalstruct	mtget {	short mt_type;   /* type of magtape device */	short mt_dsreg;  /* sc_flags */	short mt_erreg;  /* high 8 bytes error status */	/* low  8 bytes percentage of Rewrites	if writing, ECC errors if reading */	short mt_resid;  /* Mbyte until end of tape */};.Ed.PpBit 4 in the minor device number is usedto select long filemarks or short filemarks. A long filemark occupies2.12 MBytes of space on the tape, while a short filemark occupies 488 KBytes.A long filemark includes an erase gap while the short filemark does not.The tape can be positioned on the.Tn BOTside of a long filemark allowingdata to be appended with a write operation.  Since the short filemark does notcontain an erase gap which would allow writing it is considered to benon-erasable.  If either type of filemark is followed by blank tape,data may be appended on its.Tn EOTside..PpBit 5 in the minor device number selects fixed block mode with a blocksize of 1K.  Variable length records are the default if bit 5 is notset..PpFor unit 0 here are the effects of minor device bits 2,3,4,5. For otherunits add the.Em unit#to each of the device names..Bl -column norewind density filemarks -offset indent.Em norewind	high	short	fixed.Em 	density	filemarks	block moderst0nrst0	Xrst8		Xnrst8	X	Xrst16			Xnrst16	X		Xrst24		X	Xnrst24	X	X	Xrst32				Xnrst32	X			Xrst40		X		Xnrst40	X	X		Xrst48			X	Xnrst48	X		X	Xrst56		X	X	Xnrst56	X	X	X	X.El.Sh SEE ALSO.Xr mt 1 ,.Xr tar 1 ,.Xr mtio 4 ,.Rs.%T EXB-8200 8MM Cartridge Tape Subsystem Interface User Manual..Re.Sh BUGSThe.Tn HP98268.Tn SCSIcontroller hardware can not do odd length.Tn DMAtransfers.  If odd length.Tn DMA I/Ois requested the driver will use the"Program Transfer Mode" of the Fujitsu.Tn MB87030chip. Read requests arenormally even length for which a.Tn DMAtransfer is used. If, however, thedriver detects that a odd length read has happened (when a even lengthwas requested) it will issue the.Dv EIOerror and the last byte of the readdata will be 0x00. Odd length read requests must match the size of therequested data block on tape..PpThe following only applies when using long filemarks. Short filemarks cannot be overwritten..Bd -filled -offset 4nDue to the helical scan and the erase mechanism, there is a writinglimitation on Exabyte drives..Dq Li tar ror.Dq Li tar uwill not work.Pf ( Dq Li tar cis ok).  One can only start writing at  1) beginning of tape, 2) on theend of what was last written, 3) "front" side of a regular (long) filemark.For example, you have a tape with 3 tar files. If you want to save the first file, but overwrite the second two files with new data, on a normal1/4" or 1/2" drive you would do:.Pp.Li "mt fsf 1; tar cf /dev/nrst0 ...".Ppbut for an Exabyte you need to do:.Pp.Li "mt fsf 1; mt bsf 1; mt weof 1; tar cf /dev/nrst0 ...".PpThe regular long filemark consists of an erased zone 3.8" long(needed to begin a write).  In this case, the first filemark isrewritten in place, which creates an erased zone.Em afterit, clearing theway to write more on the tape.  The erase head is not helical..PpOne can position a tape to the end of what was last written by readinguntil a.Tn \*qBLANK CHECK\*qerror is returned.  Writing can be started at thispoint.  (This applies to both long and short filemarks.)  The tape doesnot become positioned somewhere down the "erased" area as does aconventional magtape.  One can issue multiple reads at the.Tn \*qBLANK CHECK\*qerror, but the Exabyte stays positioned at the beginning of theblank area, ready to accept write commands.  File skip operations donot stop at blank tape and will run into old data or run to the end ofthe tape, so you have to be careful not to.Dq Li mt fsf too_many ..Ed.PpArchive support gets confused if asked to moved more filemarks than there areon the tape..PpThis man page needs some work.  Some of these are not really bugs,just unavoidable consequences of the hardware.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -