summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-11-19 16:48:23 +0000
committerMike Buland <eichlan@xagasoft.com>2010-11-19 16:48:23 +0000
commitd013208dd0cbd42b4f46279772d02ec85c47735f (patch)
treefc9fcbd66cca9d3c291833706b6a04cf883a2d43
parent7c335ede527eaf4a3053ef35b1299141d34aaf40 (diff)
downloadlibbu++-d013208dd0cbd42b4f46279772d02ec85c47735f.tar.gz
libbu++-d013208dd0cbd42b4f46279772d02ec85c47735f.tar.bz2
libbu++-d013208dd0cbd42b4f46279772d02ec85c47735f.tar.xz
libbu++-d013208dd0cbd42b4f46279772d02ec85c47735f.zip
Wow, I can't believe I forgot to add myriadfs.
-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