diskcfg(1M)


diskcfg -- update system files for SDI drivers

Synopsis

/etc/scsi/diskcfg [-S] [-R ROOT] [filename]

Description

diskcfg generates system files for the Storage Device Interface (SDI) drivers from information provided. It reads input from the provided file, or from stdin if a file is not provided, and generates a new SDI configuration based on the information. The input provided describes the SDI drivers to be turned on and off, and must exactly match the required format or diskcfg will fail. diskcfg is intended for use with the sdiconfig(1M) command or any command producing similar output.

Options

diskcfg takes the following options:

-S
turns on the debug messages

-R ROOT
uses this value instead of / for the root of a kernel source tree

filename
read input from filename instead of from standard input

Input

The format of the input for diskcfg is:
   driver name
   long driver name
   driver type
   configure flag
   unit number
   dma channel 1
   dma channel 2
   ipl level
   interrupt vector
   interrupt sharing flag
   starting I/O address
   ending I/O address
   starting memory address
   ending memory address
   cpu binding

Each field must have a value present, and the input must be tab separated. Each input line represents one SDI device.

Note that diskcfg does not use the shell variable ROOT from the user environment as its starting path. You can specify a value for ROOT by using the -R option. The -R option should not be used except for the special case of kernel development in a non-root source tree.

Usage

diskcfg is an administrative command and must be run in single-user mode. See init(1M) for information on switching the machine to single-user mode.

Any loadable target drivers, such as st01(7)and sc01(7) must be demand loaded before executing diskcfg. See modadmin(1M) for information on loading loadable drivers.

Files


/etc/scsi/diskcfg

/dev/resmgr

/stand/resmgr

Return values

On success, diskcfg exits with a return value of 0. On failure, it returns a non-zero code.

References

disk.cfg(4dsp), init(1M), modadmin(1M), sdiadd(1M), sdiconfig(1M), sdirm(1M)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004