Skip to content
This repository
Browse code

Merge pull request #60 from eXeC64/master

Slight clean up of HAT RFC
  • Loading branch information...
commit 125a53597f052ce182e718e23cc1c5ea55c8350e 2 parents 8888ec2 + 91c6d5f
Jos Kuijpers authored April 20, 2012
30  FS/Draft_Harrys_Allocation_Table.txt
@@ -2,7 +2,7 @@
2 2
 
3 3
 
4 4
 RFC (Draft-Fs)                                           H. Jeffery, Ed.
5  
-                                                          April 14, 2012
  5
+                                                          April 19, 2012
6 6
 
7 7
 
8 8
                         Harry's Allocation Table
@@ -25,7 +25,7 @@ Table of Contents
25 25
          3.1.1.2.  num_sectors . . . . . . . . . . . . . . . . . . . . 3
26 26
          3.1.1.3.  sector_map_start  . . . . . . . . . . . . . . . . . 4
27 27
          3.1.1.4.  sector_joins_start  . . . . . . . . . . . . . . . . 4
28  
-         3.1.1.5.  sector_start  . . . . . . . . . . . . . . . . . . . 4
  28
+         3.1.1.5.  sectors_start . . . . . . . . . . . . . . . . . . . 4
29 29
          3.1.1.6.  sector_size . . . . . . . . . . . . . . . . . . . . 4
30 30
          3.1.1.7.  sectors_used  . . . . . . . . . . . . . . . . . . . 4
31 31
        3.1.2.  sector map  . . . . . . . . . . . . . . . . . . . . . . 4
@@ -35,8 +35,8 @@ Table of Contents
35 35
      3.2.  Higher Layer  . . . . . . . . . . . . . . . . . . . . . . . 5
36 36
        3.2.1.  inode . . . . . . . . . . . . . . . . . . . . . . . . . 5
37 37
          3.2.1.1.  type  . . . . . . . . . . . . . . . . . . . . . . . 6
38  
-         3.2.1.2.  content_size  . . . . . . . . . . . . . . . . . . . 6
39  
-         3.2.1.3.  link_count  . . . . . . . . . . . . . . . . . . . . 6
  38
+         3.2.1.2.  num_links . . . . . . . . . . . . . . . . . . . . . 6
  39
+         3.2.1.3.  content_size  . . . . . . . . . . . . . . . . . . . 6
40 40
        3.2.2.  link  . . . . . . . . . . . . . . . . . . . . . . . . . 6
41 41
          3.2.2.1.  strip_start_sector  . . . . . . . . . . . . . . . . 7
42 42
          3.2.2.2.  file_name . . . . . . . . . . . . . . . . . . . . . 7
@@ -133,8 +133,6 @@ Jeffery                                                         [Page 2]
133 133
 
134 134
    This structure contains the header information for HAT.
135 135
 
136  
-   The total size of the header is 16 words.
137  
-
138 136
                        +------+--------------------+
139 137
                        | Size |        Name        |
140 138
                        +------+--------------------+
@@ -142,7 +140,7 @@ Jeffery                                                         [Page 2]
142 140
                        |   1  |     num_sectors    |
143 141
                        |   2  |  sector_map_start  |
144 142
                        |   2  | sector_joins_start |
145  
-                       |   2  |    sector_start    |
  143
+                       |   2  |    sectors_start   |
146 144
                        |   1  |     sector_size    |
147 145
                        |   1  |    sectors_used    |
148 146
                        +------+--------------------+
@@ -164,6 +162,8 @@ Jeffery                                                         [Page 2]
164 162
 
165 163
 
166 164
 
  165
+
  166
+
167 167
 Jeffery                                                         [Page 3]
168 168
 
169 169
                                    HAT                        April 2012
@@ -178,7 +178,7 @@ Jeffery                                                         [Page 3]
178 178
    This field contains the address of the start of the array of sector
179 179
    joins.
180 180
 
181  
-3.1.1.5.  sector_start
  181
+3.1.1.5.  sectors_start
182 182
 
183 183
    This field contains the address of the first sector on disk.
184 184
 
@@ -285,8 +285,8 @@ Jeffery                                                         [Page 5]
285 285
                           | Size |     Name     |
286 286
                           +------+--------------+
287 287
                           |   1  |     type     |
  288
+                          |   1  |   num_links  |
288 289
                           |   2  | content_size |
289  
-                          |   1  |  link_count  |
290 290
                           +------+--------------+
291 291
 
292 292
                          Table 5: inode structure
@@ -308,16 +308,16 @@ Jeffery                                                         [Page 5]
308 308
    field is set to 1 then the inode represents a directory.  If this
309 309
    field is set to 2 then the inode represents a file.
310 310
 
311  
-3.2.1.2.  content_size
312  
-
313  
-   This field contains the amount of data stored with this inode in
314  
-   words.
315  
-
316  
-3.2.1.3.  link_count
  311
+3.2.1.2.  num_links
317 312
 
318 313
    This field contains the number of links there are that point to the
319 314
    strip containing this inode.
320 315
 
  316
+3.2.1.3.  content_size
  317
+
  318
+   This field contains the amount of data stored with this inode in
  319
+   words.
  320
+
321 321
 3.2.2.  link
322 322
 
323 323
                        +------+--------------------+
16  FS/Draft_Harrys_Allocation_Table.xml
@@ -76,7 +76,6 @@
76 76
   
77 77
         <section anchor="Header" title="header">
78 78
           <t>This structure contains the header information for HAT.</t>
79  
-          <t>The total size of the header is 16 words.</t>
80 79
   
81 80
           <texttable anchor="HeaderTable" title="Header Structure">
82 81
             <ttcol align="center">Size</ttcol>
@@ -85,7 +84,7 @@
85 84
             <c>1</c><c>num_sectors</c>
86 85
             <c>2</c><c>sector_map_start</c>
87 86
             <c>2</c><c>sector_joins_start</c>
88  
-            <c>2</c><c>sector_start</c>
  87
+            <c>2</c><c>sectors_start</c>
89 88
             <c>1</c><c>sector_size</c>
90 89
             <c>1</c><c>sectors_used</c>
91 90
           </texttable>
@@ -112,7 +111,7 @@
112 111
             sector joins.</t>
113 112
           </section>
114 113
   
115  
-          <section anchor="HeaderSectorStart" title="sector_start">
  114
+          <section anchor="HeaderSectorsStart" title="sectors_start">
116 115
             <t>This field contains the address of the first sector on disk.</t>
117 116
             <t>This is required because the first sector may not be positioned
118 117
             immediately after the header. The first sector may be positioned
@@ -193,8 +192,8 @@
193 192
             <ttcol align="center">Size</ttcol>
194 193
             <ttcol align="center">Name</ttcol>
195 194
             <c>1</c><c>type</c>
  195
+            <c>1</c><c>num_links</c>
196 196
             <c>2</c><c>content_size</c>
197  
-            <c>1</c><c>link_count</c>
198 197
           </texttable>
199 198
 
200 199
           <section anchor="InodeType" title="type">
@@ -213,15 +212,16 @@
213 212
             this field is set to 2 then the inode represents a file.</t>
214 213
           </section>
215 214
   
  215
+          <section anchor="InodeNumLinks" title="num_links">
  216
+            <t>This field contains the number of links there are that
  217
+            point to the strip containing this inode.</t>
  218
+          </section>
  219
+
216 220
           <section anchor="InodeContentSize" title="content_size">
217 221
             <t>This field contains the amount of data stored with this
218 222
             inode in words.</t>
219 223
           </section>
220 224
   
221  
-          <section anchor="InodeLinkAccount" title="link_count">
222  
-            <t>This field contains the number of links there are that
223  
-            point to the strip containing this inode.</t>
224  
-          </section>
225 225
         </section>
226 226
 
227 227
         <section anchor="Link" title="link">

0 notes on commit 125a535

Please sign in to comment.
Something went wrong with that request. Please try again.