home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man4 / rk.4 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.5 KB  |  57 lines

  1. .th RK IV 10/15/73
  2. .sh NAME
  3. rk  \*-  RK-11/RK03 (or RK05) disk
  4. .sh DESCRIPTION
  5. .it Rk?
  6. refers to an entire RK03 disk as a single sequentially-addressed
  7. file.
  8. Its 256-word blocks are numbered 0 to 4871.
  9. .s3
  10. Drive numbers (minor devices)
  11. of eight and larger are treated specially.
  12. Drive 8+\fIx\fR is the \fIx\fR+1 way
  13. interleaving of devices
  14. rk0 to rk\fIx\fR.
  15. Thus blocks on rk10 are distributed alternately
  16. among rk0, rk1, and rk2.
  17. .s3
  18. The
  19. .it rk
  20. files
  21. discussed above access the disk via the system's normal
  22. buffering mechanism
  23. and may be read and written without regard to
  24. physical disk records.
  25. There is also a ``raw'' interface
  26. which provides for direct transmission between the disk
  27. and the user's read or write buffer.
  28. A single read or write call results in exactly one I/O operation
  29. and therefore raw I/O is considerably more efficient when
  30. many words are transmitted.
  31. The names of the raw RK files
  32. begin with
  33. .it rrk
  34. and end with a number which selects the same disk
  35. as the corresponding
  36. .it rk
  37. file.
  38. .s3
  39. In raw I/O the buffer must begin on a word boundary,
  40. and counts should be a multiple of 512 bytes
  41. (a disk block).
  42. Likewise
  43. .it seek
  44. calls should specify a multiple of 512 bytes.
  45. .sh FILES
  46. /dev/rk?, /dev/rrk?
  47. .sh BUGS
  48. Care should be taken in using the interleaved files.
  49. First, the same drive should not be accessed simultaneously
  50. using the ordinary name and as part of an interleaved file,
  51. because the same physical
  52. blocks
  53. have in effect two different
  54. names; this fools the system's buffering strategy.
  55. Second, the combined files cannot be used for swapping
  56. or raw I/O.
  57.