fs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .TH FS 4
  2. .SH NAME
  3. fs \- file server, dump
  4. .SH SYNOPSIS
  5. .I none
  6. .SH DESCRIPTION
  7. The file server is the main file system for
  8. Plan 9.
  9. It is a stand-alone system that runs on
  10. a separate computer.
  11. It serves the Plan 9 protocol via the IL/IP
  12. protocols on Ethernets.
  13. The name of the main file server at Murray Hill is
  14. .BR emelie .
  15. .PP
  16. The file server normally requires all users except
  17. .L none
  18. to provide authentication tickets on each
  19. .IR attach (5).
  20. This can be disabled using the
  21. .B noauth
  22. configuration command (see
  23. .IR fsconfig (8)).
  24. .PP
  25. The group numbered 9999, normally called
  26. .BR noworld ,
  27. is special
  28. on the file server. Any user belonging to that group has
  29. attenuated access privileges. Specifically, when checking such
  30. a user's access to files, the file's permission bits are first ANDed
  31. with 0770 for normal files or 0771 for directories. The effect is
  32. to deny world access permissions to
  33. .B noworld
  34. users, except
  35. when walking directories.
  36. .PP
  37. The user
  38. .B none
  39. is always allowed to attach to
  40. .B emelie
  41. without authentication but has minimal permissions.
  42. .PP
  43. .B Emelie
  44. maintains three file systems
  45. on a combination of disks and
  46. write-once-read-many (WORM) magneto-optical disks.
  47. .TP
  48. .B other
  49. is a simple disk-based file system similar to
  50. .IR kfs (4) .
  51. .TP
  52. .B main
  53. is a worm-based file system with a disk-based
  54. look-aside cache.
  55. The disk cache holds
  56. modified worm blocks
  57. to overcome the write-once property of the worm.
  58. The cache also holds recently accessed
  59. non-modified blocks to
  60. speed up the effective access time of the worm.
  61. Occasionally
  62. (usually daily at 5AM) the modified blocks in the
  63. disk cache are
  64. .IR dumped .
  65. At this time,
  66. traffic to the file system is halted and the
  67. modified blocks are relabeled to the unwritten
  68. portion of the worm.
  69. After the dump,
  70. the file system traffic is continued and
  71. the relabeled blocks are copied to the worm by
  72. a background process.
  73. .TP
  74. .B dump
  75. Each time the main file system is dumped,
  76. its root is appended to a subdirectory of the dump file system.
  77. Since the dump file system is not mirrored with a disk
  78. cache,
  79. it is read-only.
  80. The name of the newly added root is created from the date
  81. of the dump:
  82. .BI / yyyy / mmdds\f1.
  83. Here
  84. .I yyyy
  85. is the full year,
  86. .I mm
  87. is the month number,
  88. .I dd
  89. is the day number and
  90. .I s
  91. is a sequence number if more than
  92. one dump is done in a day.
  93. For the first dump,
  94. .I s
  95. is null.
  96. For the subsequent dumps
  97. .I s
  98. is 1, 2, 3, etc.
  99. .sp
  100. The root of the main file system
  101. that is frozen on the first dump
  102. of March 1, 1992
  103. will be named
  104. .B /1992/0301/
  105. in the dump file system.
  106. .SH EXAMPLES
  107. Place the root of the
  108. .B dump
  109. file system on
  110. .B /n/dump
  111. and show the modified times of the MIPS C compiler
  112. over all dumps in February, 1992:
  113. .IP
  114. .EX
  115. 9fs dump
  116. ls -l /n/dump/1992/02??/mips/bin/vc
  117. .EE
  118. .PP
  119. To get only one line of output for each version of the compiler:
  120. .IP
  121. .EX
  122. ls -lp /n/dump/1992/02??/mips/bin/vc | uniq
  123. .EE
  124. .PP
  125. Make the
  126. .B other
  127. file system available in directory
  128. .BR /n/emelieother :
  129. .IP
  130. .EX
  131. mount -c /srv/boot /n/emelieother other
  132. .EE
  133. .SH SOURCE
  134. .B /sys/src/fs
  135. .SH SEE ALSO
  136. .IR yesterday (1),
  137. .IR srv (4),
  138. .IR fs (8)
  139. .br
  140. Sean Quinlan,
  141. ``A Cached WORM File System'',
  142. .I
  143. Software \- Practice and Experience,
  144. December, 1991
  145. .SH BUGS
  146. For the moment, the file server serves both the old (third edition) and new (fourth
  147. edition) versions of 9P, deciding which to serve by sniffing the first packet on each
  148. connection.