summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/SyntheticFileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-31 17:41:33 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-31 17:41:33 +0200
commit9ac95d1867534f3347bda6dbb2ad021812a0a99a (patch)
treeaf3ef488e711cc6dae8ed27090df705fe8bdf206 /Kernel/FileSystem/SyntheticFileSystem.cpp
parentfdf3608c8a0c940c27c4528480db7e0ef77cb83d (diff)
downloadserenity-9ac95d1867534f3347bda6dbb2ad021812a0a99a.zip
FileSystem: Pass mode_t to Inode::add_child().
This way the Ext2FS code can update its directory entry "file type" fields correctly based on the file mode. This fixes some e2fsck whining.
Diffstat (limited to 'Kernel/FileSystem/SyntheticFileSystem.cpp')
-rw-r--r--Kernel/FileSystem/SyntheticFileSystem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/FileSystem/SyntheticFileSystem.cpp b/Kernel/FileSystem/SyntheticFileSystem.cpp
index b7d96c7b7b..79ec6c9968 100644
--- a/Kernel/FileSystem/SyntheticFileSystem.cpp
+++ b/Kernel/FileSystem/SyntheticFileSystem.cpp
@@ -279,11 +279,10 @@ ssize_t SynthFSInode::write_bytes(off_t offset, ssize_t size, const byte* buffer
return 0;
}
-KResult SynthFSInode::add_child(InodeIdentifier child_id, const String& name, byte file_type)
+KResult SynthFSInode::add_child(InodeIdentifier child_id, const String& name, mode_t)
{
(void)child_id;
(void)name;
- (void)file_type;
ASSERT_NOT_REACHED();
}