home *** CD-ROM | disk | FTP | other *** search
-
- TEAC SCSI FLOPPY AUTODISKCHANGE DOC July 2/91
-
- TSFADC.doc Copyright 1991 by Harvey Taylor
-
-
- What it is
- ----------
- The TEAC SCSI Floppy does not send DiskChange messages to its
- handler. This is a situation which is liable to cause problems. One
- only need to forget a diskchange once & a disk will be corrupted.
- TSFADC is a program which runs in the background & periodically
- tests the FC-1 scsi controller to see if there has been a disk change.
- If there has TSFADC sends a packet to the handler to inform it of the
- change.
-
-
- Command Lines
- -------------
- You must run TSFADC from the CLI.
-
- TSFADC ? /* Prints format */
- TSFADC /* USES DEFAULTS */
- TSFADC scsi.device 3
-
- TEMPLATE: TSFADC [xxx.device scsi_id]
-
- The defaults are harddisk.device and 1
- To kill the TSFADC process, simply run the program again.
-
-
- Examples
- --------
-
- To use with a 2 Meg disk
-
- 1) After the drive is mounted, scsi formatted, and AmigaDOS formatted,
- one need only to run TSFADC.
- eg. use the command line
- 1> TSFADC
- 2) To kill a running TSFADC simply run it again.
- eg. use the command line
- 1> TSFADC
-
- TSFADC starts its own process, so there is no need to use
- RUN >NIL: <NIL:.
-
-
- Limitations, possible problems & algorithms
- -------------------------------------------
- There are several limitations one should be aware of when using
- TSFADC. Firstly the names SD1: SD2: SD4: SI1: SI2: SI4: (see mountlist
- entries in Overview.doc) are hardwired into TSFADC. ie if you want to
- use TSFADC you need to use these names.
- Secondly TSFADC only knows about the handlers which are operating
- when it is started. If you mount SD2:, start TSFADC and then mount SD4:
- TSFADC will not know about SD4:. In this instance, you will need to run
- TSFADC again to kill the running process and once again so that it can
- start up and see both SD2: and SD4:.
- If you start TSFADC when there are none of the devices listed above
- present, TSFADC will abort.
- TSFADC will put up three kinds of requestors if it finds something
- odd. It will tell you if it finds a disk type it doesn't recognize (or
- recognizes but doesn't have a handler for). It will ask you if it wants
- you to ignore the disk. If so, it will until a valid disk is again
- inserted. If you do not want to ignore the disk, TSFADC will ask you if
- you want it to quit. If there is a scsi error of some sort, TSFADC will
- ask you if you want it to quit.
- For example, if you accidentally put in an MSDOS disk when there is
- no MSDOS drive mounted, TSFADC will put up a requestor.
- If you put a 4 Meg disk in the drive, while only SD2: is mounted,
- TSFADC will put up a requestor.
- Note that if you use different capacity disks with TSFADC, you will
- see a lot of scsi activity while the controller tries to read the disk
- in the wrong modes. TSFADC works best when only a single capacity of
- disk is used.
- It is probably best to kill TSFADC when you are doing some
- formatting. TSFADC will not hurt anything, but you are liable to
- requestors popping up, which may be confusing...if not annoying.
- There is liable to be a hit on system performance from TSFADC. The
- reason is that TSFADC has to poll the scsi controller every n seconds.
- Here ia a sketch of algorithms used.
-
- TSFADC MAINLOOP:
- Wait for signal
- If die_bit: exit
- If timeout:
- Do TUR
- If Ready: loop
- If Not Ready:
- Do Request_Sense
- If Medium_Change:
- Send <DC> packet to current handler
- Get new handler
- If new handler same as last handler: loop
- Else Send <DC> packet to new handler & loop
- Else advise of scsi problem
-
-
- TO GET NEW HANDLER:
- for each mode
- set mode x
- read block 0
- if error: next
- check for AmigaDOS
- if present test sdx_b
- if not set: error
- if set: use sdx.hndlr
- else test six_b
- if not set: error
- if set: use six:hndlr
- fi
-
- Clearly the polling interval is an important variable here. I have
- chosen 10 seconds out of the blue. Let me know if this value seems
- inappropriate.
-
- Email Addr
- ----------
-
- Harvey Taylor Meta Media Productions
- uunet!van-bc!rsoft!mindlink!Harvey_Taylor
- a186@mindlink.bc.ca
-
-
- The TSF suite and documentation is all Copyright 1991 by Harvey Taylor
-
-