mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
Kernel: Make RAMFS pass along the inode type when traversing as a dir
RAMFS was passing 0, which lead to the userspace seeing all entries as DT_UNKNOWN when iterating over the directory contents. To repro prior to this commit, simply check `echo /tmp/*/`.
This commit is contained in:
parent
24a7df9b09
commit
b545427d53
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/alimpfard
Commit: b545427d53
Pull-request: https://github.com/SerenityOS/serenity/pull/22116
3 changed files with 63 additions and 4 deletions
|
@ -27,6 +27,19 @@ public:
|
|||
|
||||
virtual Inode& root_inode() override;
|
||||
|
||||
virtual u8 internal_file_type_to_directory_entry_type(DirectoryEntryView const& entry) const override;
|
||||
|
||||
enum class FileType : u8 {
|
||||
Directory,
|
||||
Character,
|
||||
Block,
|
||||
Regular,
|
||||
FIFO,
|
||||
Link,
|
||||
Socket,
|
||||
Unknown,
|
||||
};
|
||||
|
||||
private:
|
||||
RAMFS();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue