COMMANDS
The following commands perform various functions
on
IDC disks. Each
command
is
listed along
with
any
required arguments specific to that command. Some
commands
require exclusive access to the disk. The description for each command lists whether
or
not the command requires exclusive access. The version
of
idcfmt
that
runs
on
the
Service Processor automatically assumes that it has exclusive access to
the
disk. The
version of
idcfmt
that
runs
under
the ConvexOS coordinates exclusive access to the
disk
through a diagnostic ioctl() call to the ConvexOS disk driver. Exclusive access to a
disk
is
denied
if
the disk is currently
in
use
under
the ConvexOS file system,
or
if
any
process
has
opened
any
of the block
or
character special devices associated
with
the
disk.
The description for some of the commands assume that the
user
has
a basic knowledge
of the layout of
an
IDC disk. A description of this layout follows below.
format
Formats the drive
if
it
appears that the drive
has
not
been
previously formatted.
If
the drive
appears
to be partially formatted, the format resumes
at
the
appropriate point. This command will destroy
any
previous
data
on
the
disk.
Exclusive access to the disk is required before this command can execute. This
command tries to determine whether
or
not the drive is formatted
by
attempting
to read the topology
map
in the topology area.
If
successful in reading the
topology map, the command prints a message
and
proceeds to
the
format
verification step. The user
may
override this behavior
by
using the FORMAT
command which is the next command described.
If
the
topology
map
is
unreadaple, the program assumes that the drive has not been completely
formatted.
It
then proceeds to check for a partial format of
the
disk
by
looking for
checkpoint
data
in the topology and diagnostic areas.
If
a valid set
of
checkpoint
data
is found, the command resumes formatting
at
the point specified
by
the
checkpoint data.
If
no
checkpoint
data
is found, the command assumes that the drive
has
never been
formatted
and
proceeds to format the drive accordingly. The steps required to
format a drive are:
o) Identify the type of drive being formatted
by
performing a read configuration
command to the drive. The data returned by the read configuration
command
is
used
to search the
data
base file "DB_idc" for a match. The
data
base file contains
information
about
the disk drive such as number of cylinders,
number
of
tracks,
encoding schemes, etc. The user may override this automatic identification of the
drive
by
using the -t option
on
the command line.
o) Read the manufacturers defect
data
from the drive. The
user
may
override this
step
by
using
the
-m
option described previously in the OPTIONS section.
o) Assume that there are no grown defects for the drive. The
user
may
override
this step
by
using the -g option described previously in the OPTIONS section.
o) Format the topology area with
no
spare sectors. The topology area is
then
pattern tested with a set of patterns that are specified in the
data
base file
"DB _idc". The user
may
override the normal patterns
by
specifying
the
-p
option
Appendix A
idcfmt
(1D)
man
page
57