Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ip(4S) — SunOS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dkio(4S)

xy(4S)

IP(4S)  —  SPECIAL FILES

NAME

ip − Disk driver for Interphase 2180 SMD Disk Controller

SYNOPSIS

controller ipc0 at mb0 csr 0x40 priority 2
disk ip0 at ipc0 drive 0
disk ip1 at ipc0 drive 1

DESCRIPTION

Files with minor device numbers 0 through 7 refer to various portions of drive 0; minor devices 8 through 15 refer to drive 1, and so on.  The standard device names begin with “ip” followed by the drive number and then a letter a-h for partitions 0-7 respectively.  The character ? stands here for a drive number in the range 0-7. 

The block file’s access the disk via the system’s normal buffering mechanism and may be read and written without regard to physical disk records.  There is also a ‘raw’ interface which provides for direct transmission between the disk and the user’s read or write buffer.  A single read or write call results in exactly one I/O operation and therefore raw I/O is considerably more effficient when many words are transmitted.  The names of the raw files conventionally begin with an extra ‘r.’

In raw I/O counts should be a multiple of 512 bytes (a disk sector).  Likewise seek calls should specify a multiple of 512 bytes. 

DISK SUPPORT

This driver handles all SMD drives, by reading a label from sector 0 of the drive which describes the disk geometry and partitioning. 

The ip?a partition is normally used for the root file system on a disk, the ip?b partition as a paging area, and the ip?c partition for pack-pack copying (it normally maps the entire disk).  The rest of the disk is normally the ip?h partition. 

FILES

/dev/ip[0-7][a-h]block files
/dev/rip[0-7][a-h]raw files

SEE ALSO

dkio(4S), xy(4S)
“Interphase SMD2180 Storage Module Controller/Formatter − User’s Guide” (Sun 800-0274)

DIAGNOSTICS

ip%d: SMD-2180.  When booting tells the controller type. 

ip%d: initialization failed.  Because the controller didn’t respond; perhaps another device is at the address the system expected an Interphase controller at. 

ip%d: error %x reading label on head %d.  Error reading drive geometry/partition table information. 

ip%d: Corrupt label on head %d.  The geometry/partition label checksum was incorrect. 

ip%d: Misplaced label on head %d.  A disk label was copied to the wrong head on the disk; shoudn’t happen. 

ip%d: Unsupported phys partition # %d.  This indicates a bad label. 

ip%d: unit not online. 

ip%d%c: cmd how (msg) blk %d.  A command such as read, write, or format encountered a error condition (how): either it failed, the unit was restored, or an operation was retry’ed.  The msg is derived from the error number given by the controller, indicating a condition such as “drive not ready”, “sector not found” or “disk write protected”. 

BUGS

In raw I/O read and write(2) truncate file offsets to 512-byte block boundaries, and write scribbles on the tail of incomplete blocks.  Thus, in programs that are likely to access raw devices, read, write and lseek(2) should always deal in 512-byte multiples.

The driver no longer supports versions of the 2181. 

Sun Release 1.1  —  Last change: 20 March 1984

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026