1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:55:08 +00:00

Kernel+LibC: Use 64 bit values for ino_t

Since the InodeIndex encapsulates a 64 bit value, it is correct to
ensure that the Kernel is exposing the entire value and the LibC is
aware of it.

This commit requires an entire re-compile because it's essentially a
change in the Kernel ABI, together with a corresponding change in LibC.
This commit is contained in:
Liav A 2021-08-08 21:23:27 +03:00 committed by Andreas Kling
parent 04c2addaa8
commit bf1adc2d5d
6 changed files with 7 additions and 6 deletions

View file

@ -261,7 +261,7 @@ KResultOr<size_t> FileDescription::get_dir_entries(UserOrKernelBuffer& output_bu
return false;
}
}
stream << (u32)entry.inode.index().value();
stream << (u64)entry.inode.index().value();
stream << m_inode->fs().internal_file_type_to_directory_entry_type(entry);
stream << (u32)entry.name.length();
stream << entry.name.bytes();