RootFileSystem Class

Definition

Line 12 of cmsxk/RootFileSystem.cm

Inheritance

Constructors & Destructor

public RootFileSystem(int index_)

Member Functions

public override int AllocateBlockNumber()
public override void ChangeMode(Process* process, const String<char>& path, INode* inode, int mode)
public override void ChangeOwner(Process* process, const String<char>& path, INode* inode, int uid, int gid)
private void CreateRootFs(int maxFiles, int maxBlocks)
public override nothrow BlockManager* GetBlockManager()
public override int GetFirstINodeBlockNumber() const
public override int GetFreeINodeNumber()
public override HostFile* GetHostFile(int fsNumber) const
public override nothrow INodeManager* GetINodeManager()
public override INodeKey GetRootDirINodeKey() const
public override nothrow bool HasMountDirKey(const INodeKey& mountDirKey) const
public override void Init()
public override nothrow bool IsRootFileSystem() const
public override int LastBlockNumber() const
public override int OpenDirectory(Process* process, const String<char>& path, INode* dirINode, INodePutter& inodePutter)
public override int ReadDirectory(Process* process, DirectoryFile* dirFile, ulong inodeNumberAddress, ulong entryNameAddress)
public override void SetBlockFree(int blockNumber)
public override void SetFreeINodeNumber(int inodeNumber)
public override void SetLastBlockNumber(int blockNumber, SuperBlock* sb)
public override void UpdateFileTimes(Process* process, const String<char>& path, INode* inode, const DateTime& atime, const DateTime& mtime)

Member Variables

private UniquePtr<BlockBitmap> blockBitmap
private RootBlockManager blockManager
private HostFile* hostFile
private String<char> hostFilePath
private UniquePtr<INodeBitmap> inodeBitmap
private RootINodeManager inodeManager

Constructor& Destructor Details

RootFileSystem Constructor

public RootFileSystem(int index_)

Definition
Line 14 of cmsxk/RootFileSystem.cm


Member Function Details

AllocateBlockNumber Member Function

public override int AllocateBlockNumber()

Definition
Line 168 of cmsxk/RootFileSystem.cm


ChangeMode Member Function

public override void ChangeMode(Process* process, const String<char>& path, INode* inode, int mode)

Definition
Line 117 of cmsxk/RootFileSystem.cm


ChangeOwner Member Function

public override void ChangeOwner(Process* process, const String<char>& path, INode* inode, int uid, int gid)

Definition
Line 125 of cmsxk/RootFileSystem.cm


CreateRootFs Member Function

private void CreateRootFs(int maxFiles, int maxBlocks)

Definition
Line 234 of cmsxk/RootFileSystem.cm


GetBlockManager Member Function

public override nothrow BlockManager* GetBlockManager()

Definition
Line 283 of cmsxk/RootFileSystem.cm


GetFirstINodeBlockNumber Member Function

public override int GetFirstINodeBlockNumber()

Definition
Line 184 of cmsxk/RootFileSystem.cm


GetFreeINodeNumber Member Function

public override int GetFreeINodeNumber()

Definition
Line 176 of cmsxk/RootFileSystem.cm


GetHostFile Member Function

public override HostFile* GetHostFile(int fsNumber)

Definition
Line 198 of cmsxk/RootFileSystem.cm


GetINodeManager Member Function

public override nothrow INodeManager* GetINodeManager()

Definition
Line 287 of cmsxk/RootFileSystem.cm


GetRootDirINodeKey Member Function

public override INodeKey GetRootDirINodeKey()

Definition
Line 191 of cmsxk/RootFileSystem.cm


HasMountDirKey Member Function

public override nothrow bool HasMountDirKey(const INodeKey& mountDirKey)

Definition
Line 279 of cmsxk/RootFileSystem.cm


Init Member Function

public override void Init()

Definition
Line 21 of cmsxk/RootFileSystem.cm


IsRootFileSystem Member Function

public override nothrow bool IsRootFileSystem()

Definition
Line 17 of cmsxk/RootFileSystem.cm


LastBlockNumber Member Function

public override int LastBlockNumber()

Definition
Line 207 of cmsxk/RootFileSystem.cm


OpenDirectory Member Function

public override int OpenDirectory(Process* process, const String<char>& path, INode* dirINode, INodePutter& inodePutter)

Definition
Line 64 of cmsxk/RootFileSystem.cm


ReadDirectory Member Function

public override int ReadDirectory(Process* process, DirectoryFile* dirFile, ulong inodeNumberAddress, ulong entryNameAddress)

Definition
Line 72 of cmsxk/RootFileSystem.cm


SetBlockFree Member Function

public override void SetBlockFree(int blockNumber)

Definition
Line 172 of cmsxk/RootFileSystem.cm


SetFreeINodeNumber Member Function

public override void SetFreeINodeNumber(int inodeNumber)

Definition
Line 180 of cmsxk/RootFileSystem.cm


SetLastBlockNumber Member Function

public override void SetLastBlockNumber(int blockNumber, SuperBlock* sb)

Definition
Line 214 of cmsxk/RootFileSystem.cm


UpdateFileTimes Member Function

public override void UpdateFileTimes(Process* process, const String<char>& path, INode* inode, const DateTime& atime, const DateTime& mtime)

Definition
Line 134 of cmsxk/RootFileSystem.cm