diff options
Diffstat (limited to 'src/myriadfs.h')
-rw-r--r-- | src/myriadfs.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/myriadfs.h b/src/myriadfs.h new file mode 100644 index 0000000..687584b --- /dev/null +++ b/src/myriadfs.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef MYRIAD_FS_H | ||
2 | #define MYRIAD_FS_H | ||
3 | |||
4 | namespace Bu | ||
5 | { | ||
6 | /** | ||
7 | * A POSIX compliant, node based filesystem built on top of Myriad. | ||
8 | * | ||
9 | * Header format: | ||
10 | * int32_t iMagicHeader | ||
11 | * int8_t iVersion (1) | ||
12 | * int32_t iNodeSize | ||
13 | * int32_t iNumNodes | ||
14 | * NodeLookup[iNumNodes] nNode | ||
15 | * | ||
16 | * Node lookup: | ||
17 | * int32_t iInode | ||
18 | * int32_t iPosition | ||
19 | * | ||
20 | * Basic node header format: | ||
21 | * int32_t iUser | ||
22 | * int32_t iGroup | ||
23 | * int16_t iMeta | ||
24 | * int16_t iPerms | ||
25 | * int32_t iStreamIndex | ||
26 | * int32_t iParentNode | ||
27 | * int16_t iNameSize | ||
28 | * char[iNameSize] sName | ||
29 | */ | ||
30 | class MyriadFs | ||
31 | { | ||
32 | public: | ||
33 | MyriadFs(); | ||
34 | virtual ~MyriadFs(); | ||
35 | }; | ||
36 | }; | ||
37 | |||
38 | #endif | ||