A infant filesystem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Heliocentric

A infant filesystem

Post by Heliocentric »

This is a filesystem I'm designing; It's not even close to being finished.
but any input on it would be apprieciated


This is the format for each entry in the resource table:

Format of table:
+----------+
|  BYTE #: |
+----------+
| 12345678 |
+----------+

Entry:
+----------+
| FILENAME |
+----+--+--+
|TYPE|UI|GI|
+----+--+--+
| LOCATION |
+----------+
|  OFFSET  |
+----------+

TYPE an be any of these (underscore = NULL):

+------+-----------------------------------------------------------------+
| DIR_ | A resource which contains a list of pointers to other resources |
+------+-----------------------------------------------------------------+
| FILE | A resource which contains pointers to metadata                  |
+------+-----------------------------------------------------------------+
| INDX | A resource that implements a file system index*                 |
+------+-----------------------------------------------------------------+
| URSA | A resource that contains a compressed URS filesystem archive    |
+------+-----------------------------------------------------------------+
| APP_ | A resource that is an executable object                         |
+------+-----------------------------------------------------------------+

UI is the creator's User Identification

GI is the creator's Group Identification

The next two fields are used by the system and should NOT be transferred in any way

LOCATION is the resources location on disk (either i-node, cluster, or sector)

OFFSET is the byte offset of the location that the resource starts at

This is EXTREMELY useful for this file system as shown here:

without OFFSET:                                  with OFFSET:

+----------------------+                         +----------------------+
|       testfile       |                         |       testfile       |
+--------+------+------+                         +--------+------+------+
|  FILE  | 0000 | 0000 |                         |  FILE  | 0000 | 0000 |
+--------+------+------+                         +--------+------+------+
| 00000000000000000004 |------+                  | 00000000000000000004 |------+
+----------------------+      |                  +----------------------+      |
| 00000000000000000000 |      |                  | 00000000000000000000 |      |
+----------------------+      |                  +----------------------+      |
                              |                                                |
                              |                                                |
                              |                                                |
                              |                                                |
                              |                                                |
                              |                                                |
                              |                                                |
+----------------------+      |                  +----------------------+      |
|       testfile       |------+                  |       testfile       |------+
+--------+-------------+                         +--------+-------------+
|  ATTR  | ----------- |                         |  ATTR  | ----------- |
+--------+-------------+                         +--------+-------------+
| 00000000000000000005 |                         | 00000000000000000004 |
+----------------------+                         +----------------------+
| 00000000000000000000 |                         | 000000000000000000ff |
+----------------------+                         +----------------------+
|       banner__       |                         |       banner__       |
+--------+-------------+                         +--------+-------------+
|  JPEG  | ----------- |                         |  JPEG  | ----------- |
+--------+-------------+                         +--------+-------------+
| 00000000000000000006 |                         | 00000000000000000004 |
+----------------------+                         +----------------------+
| 00000000000000000000 |                         | 0000000000000000014c |
+----------------------+                         +----------------------+
|       body____       |                         |       body____       |
+--------+-------------+                         +--------+-------------+
|  TEXT  | ----------- |                         |  TEXT  | ----------- |
+--------+-------------+                         +--------+-------------+
| 00000000000000000007 |                         | 00000000000000000004 |
+----------------------+                         +----------------------+
| 00000000000000000000 |                         | 0000000000000000025e |
+----------------------+                         +----------------------+
|       template       |                         |       template       |
+--------+-------------+                         +--------+-------------+
|  XML_  | ----------- |                         |  XML_  | ----------- |
+--------+-------------+                         +--------+-------------+
| 00000000000000000008 |                         | 00000000000000000004 |
+----------------------+                         +----------------------+
| 00000000000000000000 |                         | 000000000000000002df |
+----------------------+                         +----------------------+
|       default_       |                         |       default_       |
+--------+-------------+                         +--------+-------------+
|  ICON  | ----------- |                         |  ICON  | ----------- |
+--------+-------------+                         +--------+-------------+
| 00000000000000000009 |                         | 00000000000000000004 |
+----------------------+                         +----------------------+
| 00000000000000000000 |                         | 000000000000000002ff |
+----------------------+                         +----------------------+
|       back____       |                         |       back____       |
+--------+-------------+                         +--------+-------------+
|  WAVE  | ----------- |                         |  WAVE  | ----------- |
+--------+-------------+                         +--------+-------------+
| 0000000000000000000A |                         | 00000000000000000004 |
+----------------------+                         +----------------------+
| 00000000000000000000 |                         | 000000000000000003d4 |
+----------------------+                         +----------------------+
Heliocentric

Crap!

Post by Heliocentric »

that didn't work very well..
Heliocentric

A better looking one

Post by Heliocentric »

Here's the URL for a better looking one:
http://www.angelfire.com/alt2/revelationos/
Post Reply