Kernel: You don't have to check whether VFS is initialized or not

VFS now returns Error when attempting to traverse inodes if it did
not find root partition
This commit is contained in:
Bananymous
2023-03-09 02:31:24 +02:00
parent fc58baf54d
commit 8940ff8002
5 changed files with 8 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ namespace Kernel
public:
static BAN::ErrorOr<void> initialize();
static VirtualFileSystem& get();
static bool is_initialized();
virtual ~VirtualFileSystem() {};
virtual const BAN::RefPtr<Inode> root_inode() const override { return m_root_inode; }