summaryrefslogtreecommitdiff
path: root/Source/Kernel/VFS/FileSystem.proto.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-29 12:30:07 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-29 12:30:07 +0100
commit74dea7d492d6d352bfacb147b1c08ad0cf0a8b29 (patch)
treef613c8395b75a68e51d69c24eb3acdb0816ad509 /Source/Kernel/VFS/FileSystem.proto.h
parentd3e4ef59cbb45f02e07fe17fb7c58cba3c737900 (diff)
parenta913d4c2cb4daf10c0eac4d548fccb26b2a9f099 (diff)
downloadMelon-74dea7d492d6d352bfacb147b1c08ad0cf0a8b29.tar.gz
Melon-74dea7d492d6d352bfacb147b1c08ad0cf0a8b29.zip
Merge branch 'mountpoints' of github.com:Alexis211/Melon into mountpoints
Diffstat (limited to 'Source/Kernel/VFS/FileSystem.proto.h')
-rw-r--r--Source/Kernel/VFS/FileSystem.proto.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/Source/Kernel/VFS/FileSystem.proto.h b/Source/Kernel/VFS/FileSystem.proto.h
index a614c13..9216219 100644
--- a/Source/Kernel/VFS/FileSystem.proto.h
+++ b/Source/Kernel/VFS/FileSystem.proto.h
@@ -5,20 +5,29 @@
class FSNode;
class FileNode;
class DirectoryNode;
+class FileSystem;
+
+namespace VFS {
+ bool unmount(FileSystem*);
+}
//This abstract class describes a filesystem
class FileSystem {
+ friend bool VFS::unmount(FileSystem*);
+
protected:
- virtual ~FileSystem() {}
+ virtual ~FileSystem();
bool m_isWritable; //false = read only
DirectoryNode* m_rootNode;
- public:
- bool unmount();
+ virtual bool unmount() = 0; //Sync data with the disk
+ public:
bool isWritable() { return m_isWritable; }
DirectoryNode* getRootNode() { return m_rootNode; }
+ virtual String getDevDescription() = 0;
+
//Must be implemented by the filesystem
virtual bool setName(FSNode* node, String name) = 0;
virtual bool setPermissions(FSNode* node, u32int permissions) = 0;