Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slight clean up of HAT RFC #60

Merged
merged 3 commits into from Apr 20, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 15 additions & 15 deletions FS/Draft_Harrys_Allocation_Table.txt
Expand Up @@ -2,7 +2,7 @@


RFC (Draft-Fs) H. Jeffery, Ed.
April 14, 2012
April 19, 2012


Harry's Allocation Table
Expand All @@ -25,7 +25,7 @@ Table of Contents
3.1.1.2. num_sectors . . . . . . . . . . . . . . . . . . . . 3
3.1.1.3. sector_map_start . . . . . . . . . . . . . . . . . 4
3.1.1.4. sector_joins_start . . . . . . . . . . . . . . . . 4
3.1.1.5. sector_start . . . . . . . . . . . . . . . . . . . 4
3.1.1.5. sectors_start . . . . . . . . . . . . . . . . . . . 4
3.1.1.6. sector_size . . . . . . . . . . . . . . . . . . . . 4
3.1.1.7. sectors_used . . . . . . . . . . . . . . . . . . . 4
3.1.2. sector map . . . . . . . . . . . . . . . . . . . . . . 4
Expand All @@ -35,8 +35,8 @@ Table of Contents
3.2. Higher Layer . . . . . . . . . . . . . . . . . . . . . . . 5
3.2.1. inode . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2.1.1. type . . . . . . . . . . . . . . . . . . . . . . . 6
3.2.1.2. content_size . . . . . . . . . . . . . . . . . . . 6
3.2.1.3. link_count . . . . . . . . . . . . . . . . . . . . 6
3.2.1.2. num_links . . . . . . . . . . . . . . . . . . . . . 6
3.2.1.3. content_size . . . . . . . . . . . . . . . . . . . 6
3.2.2. link . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2.2.1. strip_start_sector . . . . . . . . . . . . . . . . 7
3.2.2.2. file_name . . . . . . . . . . . . . . . . . . . . . 7
Expand Down Expand Up @@ -133,16 +133,14 @@ Jeffery [Page 2]

This structure contains the header information for HAT.

The total size of the header is 16 words.

+------+--------------------+
| Size | Name |
+------+--------------------+
| 1 | version |
| 1 | num_sectors |
| 2 | sector_map_start |
| 2 | sector_joins_start |
| 2 | sector_start |
| 2 | sectors_start |
| 1 | sector_size |
| 1 | sectors_used |
+------+--------------------+
Expand All @@ -164,6 +162,8 @@ Jeffery [Page 2]





Jeffery [Page 3]

HAT April 2012
Expand All @@ -178,7 +178,7 @@ Jeffery [Page 3]
This field contains the address of the start of the array of sector
joins.

3.1.1.5. sector_start
3.1.1.5. sectors_start

This field contains the address of the first sector on disk.

Expand Down Expand Up @@ -285,8 +285,8 @@ Jeffery [Page 5]
| Size | Name |
+------+--------------+
| 1 | type |
| 1 | num_links |
| 2 | content_size |
| 1 | link_count |
+------+--------------+

Table 5: inode structure
Expand All @@ -308,16 +308,16 @@ Jeffery [Page 5]
field is set to 1 then the inode represents a directory. If this
field is set to 2 then the inode represents a file.

3.2.1.2. content_size

This field contains the amount of data stored with this inode in
words.

3.2.1.3. link_count
3.2.1.2. num_links

This field contains the number of links there are that point to the
strip containing this inode.

3.2.1.3. content_size

This field contains the amount of data stored with this inode in
words.

3.2.2. link

+------+--------------------+
Expand Down
16 changes: 8 additions & 8 deletions FS/Draft_Harrys_Allocation_Table.xml
Expand Up @@ -76,7 +76,6 @@

<section anchor="Header" title="header">
<t>This structure contains the header information for HAT.</t>
<t>The total size of the header is 16 words.</t>

<texttable anchor="HeaderTable" title="Header Structure">
<ttcol align="center">Size</ttcol>
Expand All @@ -85,7 +84,7 @@
<c>1</c><c>num_sectors</c>
<c>2</c><c>sector_map_start</c>
<c>2</c><c>sector_joins_start</c>
<c>2</c><c>sector_start</c>
<c>2</c><c>sectors_start</c>
<c>1</c><c>sector_size</c>
<c>1</c><c>sectors_used</c>
</texttable>
Expand All @@ -112,7 +111,7 @@
sector joins.</t>
</section>

<section anchor="HeaderSectorStart" title="sector_start">
<section anchor="HeaderSectorsStart" title="sectors_start">
<t>This field contains the address of the first sector on disk.</t>
<t>This is required because the first sector may not be positioned
immediately after the header. The first sector may be positioned
Expand Down Expand Up @@ -193,8 +192,8 @@
<ttcol align="center">Size</ttcol>
<ttcol align="center">Name</ttcol>
<c>1</c><c>type</c>
<c>1</c><c>num_links</c>
<c>2</c><c>content_size</c>
<c>1</c><c>link_count</c>
</texttable>

<section anchor="InodeType" title="type">
Expand All @@ -213,15 +212,16 @@
this field is set to 2 then the inode represents a file.</t>
</section>

<section anchor="InodeNumLinks" title="num_links">
<t>This field contains the number of links there are that
point to the strip containing this inode.</t>
</section>

<section anchor="InodeContentSize" title="content_size">
<t>This field contains the amount of data stored with this
inode in words.</t>
</section>

<section anchor="InodeLinkAccount" title="link_count">
<t>This field contains the number of links there are that
point to the strip containing this inode.</t>
</section>
</section>

<section anchor="Link" title="link">
Expand Down