#ifndef __FILESYSTEM_H__
#define __FILESYSTEM_H__
#include <stdint.h>
#include "objectstore.h"
@author
class FileSystem
{
public:
FileSystem(Disk* disk);
~FileSystem();
INodeWrapper* followPath(const INodeWrapper* from, const char* path);
ErrorCode getDirectoryEntry(const INodeWrapper* dir, INodeWrapper* entry, const char* name);
ErrorCode linkINode(INodeWrapper* dir, const char* name, INodeWrapper* inode);
ErrorCode createDirectory(INodeWrapper* parentdir, const char* name);
void listDirectory(INodeWrapper* inode);
ObjectStore store;
};
#endif