Research V7 release
[unix-history] / usr / man / man4 / hp.4
CommitLineData
70b96c2d
DR
1.TH HP 4
2.SH NAME
3hp \- RH-11/RP04, RP05, RP06 moving-head disk
4.SH DESCRIPTION
5The octal representation of the minor device number is encoded
6.IR idp ,
7where
8.I i
9is an interleave flag,
10.I d
11is a physical drive number,
12and
13.I p
14is a pseudodrive (subsection) within a physical unit.
15If
16.I i
17is 0,
18the origins and sizes of the pseudodisks on each drive,
19counted in cylinders of 418 512-byte blocks, are:
20.nf
21.PP
22 disk start length
23 0 0 23
24 1 23 21
25 2 0 0
26 3 0 0
27 4 44 386
28 5 430 385
29 6 44 367
30 7 44 771
31.fi
32.PP
33If
34.I i
35is 1, the minor device consists of the specified
36pseudodisk on drives numbered 0 through the designated
37drive number.
38Successively numbered blocks are distributed
39across the drives in rotation.
40.PP
41Systems distributed for these devices
42use disk 0 for the root, disk 1 for swapping, and
43disk 4 (RP04/5) or disk 7 (RP06) for a mounted
44user file system.
45.PP
46The
47block
48files
49access the disk via the system's normal
50buffering mechanism
51and may be read and written without regard to
52physical disk records.
53.PP
54A `raw' interface
55provides for direct transmission between the disk
56and the user's read or write buffer.
57A single read or write call results in exactly one I/O operation
58and therefore raw I/O is considerably more efficient when
59many words are transmitted.
60The names of the raw files
61conventionally
62begin with
63an extra `r.'
64In raw I/O the buffer must begin on a word boundary,
65and raw I/O to an interleaved device is likely to have
66disappointing results.
67.SH FILES
68/dev/rp?, /dev/rrp?
69.SH SEE ALSO
70rp(4)
71.SH BUGS
72In raw I/O
73.I read
74and
75.IR write (2)
76truncate file offsets to 512-byte block boundaries,
77and
78.I write
79scribbles on the tail of incomplete blocks.
80Thus,
81in programs that are likely to access raw devices,
82.I read, write
83and
84.IR lseek (2)
85should always deal in 512-byte multiples.
86.PP
87Raw device drivers don't work on interleaved devices.