summaryrefslogtreecommitdiff
path: root/Source/Kernel/FileSystems/RamFS/RamFS.class.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/FileSystems/RamFS/RamFS.class.h')
-rw-r--r--Source/Kernel/FileSystems/RamFS/RamFS.class.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Kernel/FileSystems/RamFS/RamFS.class.h b/Source/Kernel/FileSystems/RamFS/RamFS.class.h
index 0a3f0c4..1d60796 100644
--- a/Source/Kernel/FileSystems/RamFS/RamFS.class.h
+++ b/Source/Kernel/FileSystems/RamFS/RamFS.class.h
@@ -17,12 +17,17 @@ struct initrd_file_header {
class RamFS : public FileSystem {
private:
+ ~RamFS();
+ RamFS(const RamFS& other);
+ RamFS();
+ bool unmount(); //TO BE USED ONLY BY VFS::UNMOUNT (when will exist...)
+
u32int m_maxSize;
u32int m_usedSize;
public:
- RamFS(u32int maxSize); //Creates an empty RAM file system
- RamFS(u8int* ptr, u32int maxSize, bool writable = true); //Creates a RAM file system from data loaded in memory. format to be defined
+ static RamFS* mount(u32int maxSize, DirectoryNode* mountpoint); //Creates an empty RAM file system
+ static RamFS* mount(u8int* ptr, u32int maxSize, DirectoryNode* mountpoint, bool writable = true); //Creates a RAM file system from data loaded in memory. format to be defined
bool setName(FSNode* node, String name);
bool setPermissions(FSNode* node, u32int permissions);