home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
dskstruc
/
dmgpr231.arj
/
DMGPARK.DOC
< prev
Wrap
Text File
|
1992-05-09
|
9KB
|
199 lines
DmgPARK.COM
Hard Disk Head Parking TSR Utility
Copyright 1991, 1992 by Dan Goodell
April 24, 1992
DmgPARK is a memory-resident program that will park your
hard disk's heads after a period of hard disk inactivity.
This program will park one or two disks. In a system with
two disks, each disk is parked independently. Thus,
activity on one drive will not prevent the other drive from
parking. The program should be able to automatically find
the innermost cylinder on the disk and use it as the
"landing zone". If this is not where your disk's landing
zone is, you can specify the correct landing zone with a
command line parameter (unlike most other parking programs).
Unlike most TSR parkers, this program avoids interrupting
the system during other disk accesses (which can crash the
system). The program will detect if a copy of itself is
already memory-resident.
Command syntax:
DMGPARK [/i] [/u] [/t:n] [/0:n] [/1:n]
/i install TSR automatically (if not installed)
or report parameter settings (if installed)
/u uninstall TSR, if possible
/t:n specify parking timeout period in seconds
(range= 0 to 3600)
/0:n force first disk to park at track number n
/1:n force second disk to park at track number n
One or more parameters must be included to install the
program. If no parameters are specified on the command
line, a help screen is displayed showing the syntax options.
The /i parameter will install the program if it is not yet
memory-resident. If already installed, it will report the
time and track numbers already in use.
Installing subsequent TSR's that use Interrupts 10h, 13h, or
1Ch will prevent this one from being uninstalled.
The timeout period is entered in seconds. Entries over 3600
seconds (1 hour) may be entered but will be capped at 3600.
An entry of 0 will disable the parking function for both
disks. If no period is specified, the default period is 120
seconds.
If the track number parameters are not used, the program
will automatically determine the parking cylinder. This can
be overridden by designating another track number to use.
Specifying any invalid track will disable the parking
function for that disk. Note: A subsequent call with the /i
parameter will cause the program to auto-find the parking
cylinder anew.
The time and track number settings can be altered after
installation. These numbers are entered and displayed in
decimal format.
DmgPARK is supplied as is. The author disclaims all
warranties, expressed or implied, including, without
limitation, the warranties of suitability for any purpose.
The author assumes no liability for damages, direct or
consequential, which may result from the use of this
program. Users of this program must accept this disclaimer
of warranty.
This program is the copyrighted work of its author, Dan
Goodell. There is no charge for private, non-commercial use
of this program. You are granted a license to use and
distribute this software, subject to the following:
1). It must be distributed in its original, unmodified
form, and with this documentation accompanying the program
file.
2). No fee may be charged for use or or distribution,
except for a nominal disk copying charge, not to exceed
$5.00.
3). The program may not be included with any other
product or service distributed for a fee, unless written
permission is provided by the author.
I know the name of this program is not real clever, but give
me a break, folks -- all the good names are taken! I've
heard of Diskpark, Hardpark, Hdpark, Autopark, Timepark,
Parktime, Pcpark, not to mention Park, Park, Park, Park, and
yet another Park! I just want to be able to find mine
amongst all of the above!
By the way, for a detailed review of a lot of these parking
utilities, please see my separate report, "The Truth About
Hard Disk Head Parking Programs", uploaded as PRKING.ZIP.
If you use a parking utility, this report is well worth
reading!
If you have any comments or questions about this program,
please contact me at CompuServe [71520,3116] or the address
shown below.
DmgPARK Version 2.31
Copyright 1991, 1992, All rights reserved
by Dan Goodell
1261 Hookston Road
Concord, CA 94518
CompuServe: 71520,3116
Revision History:
Version 2.31 Changes: 04/24/92
1. Modified use of 'busy' byte -- also set to 01h
when any call to INT 13h is made. This prevents
the parking routine from activating when other
INT 13h action (such as a floppy read or write)
is in progress, which could crash the system.
Version 2.30 Changes: 04/14/92
1. Modified use of 'busy' byte -- set to 01h only
when parking is actually in progress.
2. Bug fix - the 8259 Interrupt Controller is not
normally reenabled by the time the INT 1C bios
routine finishes and our park routine is entered.
New1C routine now reenables the 8259.
3. Bug fix - asm logic corrected to allow timeout
periods between 30-60 minutes. The old logic
considered a drive parked if the 16-bit counter
was negative, so barred using timeout values of
8000h-FFFFh.
Version 2.21 Changes: 02/03/92
1. Modified new INT 1C routine to carry out normal
servicing first before returning to carry out new
services. This should prevent possible loss of
time due to the timer tick routine getting lost
during the parking routine.
Version 2.20 Changes: 01/06/92
1. Removed incrementing seek test to find the last
track - some controllers do not return seek
errors so installation would hang.
2. Installation routine now makes three attempts to
find a parking track.
Version 2.11 Changes: 12/31/91
1. Timeout seconds register increased from byte to
word to allow periods greater than 255 seconds.
Seconds limited to 3600 to avoid divide overflow
when converting to timer ticks.
2. Bug fix - corrected math error in findcyl routine
when parking track is incremented or decremented
across boundary of exact multiple of 256.
Version 2.10 Changes: 12/05/91
1. Uninstall option added.
2. Bug fix - program now returns version number of
installed TSR instead of misinterpreting version
at command line as the TSR version.
Version 2.00 Changes:
1. If dmgPARK is run again after installation, it
will now overlay parameters in the installed TSR,
instead of just refusing to run.
2. Active TSR now returns its version number when
polled by the command line program.
3. Default is now Help mode instead of Install mode,
parameter /i added.
4. Timeout value in secs. is now saved for later
redisplay with /i parameter.
5. If parking track value is erased, /i without
track parameter enables dmgPARK to automatically
find innermost track and use it. A valid track
parameter will overlay, an invalid parameter will
erase the existing track value.
6. Coding changes to simplify routines.
Version 1.00: original TSR version.