1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 07:05:06 +00:00

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.
This commit is contained in:
Andreas Kling 2019-05-31 17:41:33 +02:00
parent fdf3608c8a
commit 9ac95d1867
8 changed files with 30 additions and 29 deletions

View file

@ -1079,11 +1079,10 @@ ssize_t ProcFSInode::write_bytes(off_t offset, ssize_t size, const byte* buffer,
return 0;
}
KResult ProcFSInode::add_child(InodeIdentifier child_id, const String& name, byte file_type)
KResult ProcFSInode::add_child(InodeIdentifier child_id, const String& name, mode_t)
{
(void)child_id;
(void)name;
(void)file_type;
return KResult(-EPERM);
}