From d013208dd0cbd42b4f46279772d02ec85c47735f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 19 Nov 2010 16:48:23 +0000 Subject: Wow, I can't believe I forgot to add myriadfs. --- src/myriadfs.cpp | 10 ++++++++++ src/myriadfs.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/myriadfs.cpp create mode 100644 src/myriadfs.h 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 @@ +#include "myriadfs.h" + +Bu::MyriadFs::MyriadFs() +{ +} + +Bu::MyriadFs::~MyriadFs() +{ +} + 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 @@ +#ifndef MYRIAD_FS_H +#define MYRIAD_FS_H + +namespace Bu +{ + /** + * A POSIX compliant, node based filesystem built on top of Myriad. + * + * Header format: + * int32_t iMagicHeader + * int8_t iVersion (1) + * int32_t iNodeSize + * int32_t iNumNodes + * NodeLookup[iNumNodes] nNode + * + * Node lookup: + * int32_t iInode + * int32_t iPosition + * + * Basic node header format: + * int32_t iUser + * int32_t iGroup + * int16_t iMeta + * int16_t iPerms + * int32_t iStreamIndex + * int32_t iParentNode + * int16_t iNameSize + * char[iNameSize] sName + */ + class MyriadFs + { + public: + MyriadFs(); + virtual ~MyriadFs(); + }; +}; + +#endif -- cgit v1.2.3