Kernel: Inode/Device detection is done with overridden bool functions

This commit is contained in:
Bananymous
2023-06-03 13:28:15 +03:00
parent 402ad85583
commit 9228df0f23
6 changed files with 7 additions and 26 deletions

View File

@@ -43,7 +43,7 @@ namespace Kernel
char m_label[36 * 4 + 1];
public:
virtual DeviceType device_type() const override { return DeviceType::Partition; }
virtual bool is_partition() const override { return true; }
virtual Mode mode() const override { return { Mode::IFBLK | Mode::IRUSR | Mode::IRGRP }; }
virtual uid_t uid() const override { return 0; }