aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/myriadfs.cpp10
-rw-r--r--src/myriadfs.h38
2 files changed, 48 insertions, 0 deletions
diff --git a/src/myriadfs.cpp b/src/myriadfs.cpp
new file mode 100644
index 0000000..bb72cd5
--- /dev/null
+++ b/src/myriadfs.cpp
@@ -0,0 +1,10 @@
1#include "myriadfs.h"
2
3Bu::MyriadFs::MyriadFs()
4{
5}
6
7Bu::MyriadFs::~MyriadFs()
8{
9}
10
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
4namespace 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