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

Kernel: Memory-mapped files now have the absolute path as their name.

It's generated when the mapping is first created, so it won't update if
the file moves. Maybe that's something we should support, too.
This commit is contained in:
Andreas Kling 2019-06-02 10:14:28 +02:00
parent 4320c5fd58
commit 5e1c7cb32c
9 changed files with 10 additions and 17 deletions

View file

@ -260,7 +260,7 @@ InodeMetadata FileDescriptor::metadata() const
KResultOr<Region*> FileDescriptor::mmap(Process& process, LinearAddress laddr, size_t offset, size_t size, int prot)
{
return m_file->mmap(process, laddr, offset, size, prot);
return m_file->mmap(process, *this, laddr, offset, size, prot);
}
KResult FileDescriptor::truncate(off_t length)