summaryrefslogtreecommitdiff
path: root/Source/Kernel/FileSystems/RamFS
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-09-13 18:27:42 +0200
committerAlexis211 <alexis211@gmail.com>2009-09-13 18:27:42 +0200
commit668bbfdaea7e8cba8233ebffe2a9d46a66e257cd (patch)
treec698b0f1a0baa98f6a2ec6f7aa0d3bd97021f376 /Source/Kernel/FileSystems/RamFS
parent708765621ede3541037fb822cc032b9feb2ea43e (diff)
downloadMelon-668bbfdaea7e8cba8233ebffe2a9d46a66e257cd.tar.gz
Melon-668bbfdaea7e8cba8233ebffe2a9d46a66e257cd.zip
We now can navigate in the VFS using the integrated shell.
Diffstat (limited to 'Source/Kernel/FileSystems/RamFS')
-rw-r--r--Source/Kernel/FileSystems/RamFS/RamFS.class.cpp2
-rw-r--r--Source/Kernel/FileSystems/RamFS/RamFS.class.h1
-rw-r--r--Source/Kernel/FileSystems/RamFS/RamFileNode.class.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/Source/Kernel/FileSystems/RamFS/RamFS.class.cpp b/Source/Kernel/FileSystems/RamFS/RamFS.class.cpp
index f5a502f..7e29e08 100644
--- a/Source/Kernel/FileSystems/RamFS/RamFS.class.cpp
+++ b/Source/Kernel/FileSystems/RamFS/RamFS.class.cpp
@@ -139,3 +139,5 @@ DirectoryNode* RamFS::createDirectory(DirectoryNode* parent, String name) {
return d;
}
+
+bool RamFS::remove(DirectoryNode* parent, FSNode* node) { return true; }
diff --git a/Source/Kernel/FileSystems/RamFS/RamFS.class.h b/Source/Kernel/FileSystems/RamFS/RamFS.class.h
index 034a948..0a3f0c4 100644
--- a/Source/Kernel/FileSystems/RamFS/RamFS.class.h
+++ b/Source/Kernel/FileSystems/RamFS/RamFS.class.h
@@ -37,6 +37,7 @@ class RamFS : public FileSystem {
bool loadContents(DirectoryNode* dir);
FileNode* createFile(DirectoryNode* parent, String name);
DirectoryNode* createDirectory(DirectoryNode* parent, String name);
+ bool remove(DirectoryNode* parent, FSNode* node);
};
#endif
diff --git a/Source/Kernel/FileSystems/RamFS/RamFileNode.class.h b/Source/Kernel/FileSystems/RamFS/RamFileNode.class.h
index 142d763..d600630 100644
--- a/Source/Kernel/FileSystems/RamFS/RamFileNode.class.h
+++ b/Source/Kernel/FileSystems/RamFS/RamFileNode.class.h
@@ -11,7 +11,7 @@ class RamFileNode : public FileNode {
u32int uid = 0, u32int gid = 0) :
FileNode(name, fs, parent, 0, permissions, uid, gid), m_data(0) {}
- u8int *m_data;
+ u8int *m_data; //We don't take care of allocation/freeing here, RamFS:: does that for us
void setLength(u32int length) { m_length = length; }
};