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

📄 readme.stinit

📁 mt 是linux下得磁带机
💻 STINIT
字号:
The program stinit is meant for initializing of SCSI tape drive modesat system startup, when the tape driver module is loaded, or when newtape drivers are initialized usingecho "scsi add-single-device x y z v" >/proc/scsi/scsior (with 2.6 kernels)echo "y z v" > /sys/class/scsi_host/hostx/scanwhere x=host y=channel z=id v=lun (- is wild card for 2.6).The parameters used in initialization of a tape drive are fetched froma text file. The parameter file is indexed by the inquiry datareturned by the drive, i.e., the parameters are defined by the drivemanufacturer, model, etc. This means that the initialization for adrive does not depend on its hardware address. A similar method isused by most Unices either within the kernel or outside the kernel.The contents of the configuration file and the command line parametersare defined in the man page stinit.8. A sample configuration filestinit.def.examples is included in this distribution. It can be used asexample when writing descriptions for the tape drives in asystem. NOTE that the examples by no means specify what are the"correct" parameters for different types of devices.The program is configured for maximum of 32 tapes and 4 modes (thedefault Linux configuration). If the kernel is configured fordifferent number of tape modes, the definitions MAX_TAPES andNBR_MODES in stinit.c should be configured accordingly. (With 8 bitminor numbers NBR_MODES * MAX_TAPES == 128.)The files:stinit.c            - the program source codestinit.8            - the man pagestinit.def.examples - a file containing example definitions for                      imaginary tape drivesMakefile            - a sample makefile for the programREADME.stinit       - this fileChanges in version 0.9b:- fix back out to SCSI_IOCTL_SEND_COMMAND for 2.4 kernels (2.4 uses errno  EINVAL for unsupported ioctls)Changes in version 0.9:- try first SG_IO for inquiry, if the ioctl fails, try SCSI_IOCTL_SEND_COMMAND  - error checking for SG_IO is very simplistic for nowChanges in version 0.8:- in devfs, /dev/tapes/tape<n> does not match <n>th drive after rmmoding  and insmodding the st driver; fix provided by Philippe Troin- put the man page into /usr/share/man/man8- counts can use the k, M, or G postfixChanges in version 0.7:- the directory scanning for tape devices is restricted to files with  certain names in some directories to avoid triggering automatic  module loading for device that don't exist (original patch from  Philippe Troin)- support for devfs (/dev/tapes) added- logging bug fixes- add setting the cleaning request parameter- add setting the no-wait (immediate) bitChanges in version 0.6:- fix the bug with whitespace at the beginning of lines- use O_NONBLOCK to open the tape (anticipate kernel change)Initial version 0.5.May 29, 2005  Kai M鋕isara <Kai.Makisara@kolumbus.fi>

⌨️ 快捷键说明

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