aboutsummaryrefslogtreecommitdiff
path: root/src/myriadfs.h
blob: 687584b9e2e5343ec737bde39de4804118c4b5b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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