summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Ext2FileSystem.h
diff options
context:
space:
mode:
authorJesse Buhagiar <jesse.buhagiar@student.rmit.edu.au>2019-08-11 23:56:39 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-08-17 09:29:54 +0200
commitbc22456f89bed0dd2ead58a7157af0d7673b4a7e (patch)
treecf09d9e79cea24fbe9cd500640643714f9c0745f /Kernel/FileSystem/Ext2FileSystem.h
parentf7251c74a9d4fa1f5063e1626f35a3d2e0f375e8 (diff)
downloadserenity-bc22456f89bed0dd2ead58a7157af0d7673b4a7e.zip
Kernel: Added unmount ability to VFS
It is now possible to unmount file systems from the VFS via `umount`. It works via looking up the `fsid` of the filesystem from the `Inode`'s metatdata so I'm not sure how fragile it is. It seems to work for now though as something to get us going.
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.h')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h
index 43b184b84e..3cc7f19716 100644
--- a/Kernel/FileSystem/Ext2FileSystem.h
+++ b/Kernel/FileSystem/Ext2FileSystem.h
@@ -69,6 +69,8 @@ public:
virtual unsigned total_inode_count() const override;
virtual unsigned free_inode_count() const override;
+ virtual KResult prepare_to_unmount() const override;
+
private:
typedef unsigned BlockIndex;
typedef unsigned GroupIndex;