Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ip(4) — SunOS 0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xy(4)

HK(4)  —  System Manager’s Manual — Special Files

THIS PAGE IS STILL UNDER DEVELOPMENT!!!!!

NAME

ip − Disk driver for Interphase SMD Disk Controllers

SYNOPSIS

controller ip0 at mbio? 
disk rk0 at ip0 drive 0
disk rk1 at ip0 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 origin and size of the pseudo-disks on each drive are as follows:

RK07 partitions:
diskstartlengthcyl
ip?a0158840-240
ip?b1590610032241-392
ip?c0537900-814
ip?g2600427786393-813

RK06 partitions
diskstartlengthcyl
ip?a0158840-240
ip?b1590611154241-409
ip?c0271260-410

The block files 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 efficient 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. 

FILES

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

SEE ALSO

xy(4)

DIAGNOSTICS

rk%d%c: hard error sn%d cs2=%b ds=%b er=%b.  An unrecoverable error occured during transfer of the specified sector of the specified disk partition. 

rk%d: write locked.  The write protect switch was set on the drive when a write was attempted.  The write operation is not recoverable. 

rk%d: not ready.  The drive was spun down or off line when it was accessed.  The i/o operation is not recoverable. 

rk%d: not ready (came back!).  The drive was not ready, but after printing the message about being not ready (which takes a fraction of a second) was ready.  The operation is recovered if no further errors occur. 

rk%d%c: soft ecc sn%d.  A recoverable ECC error occurred on the specified sector of the specified disk partition.  This happens normally a few times a week.  If it happens more frequently than this the sectors where the errors are occuring should be checked to see if certain cylinders on the pack, spots on the carriage of the drive or heads are indicated. 

ip%d: lost interrupt.  A timer watching the controller detected no interrupt for an extended period while an operation was outstanding.  This indicates a hardware or software failure.  There is currently a hardware/software problem with spinning down drives while they are being accessed which causes this error to occur. 

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.

Sun System Release 0.3  —  17 February 1983

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