kernel: Properly expose block device sizes with the new metadata API

This commit is contained in:
apio 2023-08-08 15:17:08 +02:00
parent 8c13513bf4
commit bfb76b5625
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -70,6 +70,7 @@ namespace TmpFS
inode->set_device_id(luna_dev_makedev(major, minor), {});
inode->m_metadata.mode = mode;
inode->m_metadata.atime = inode->m_metadata.ctime = inode->m_metadata.mtime = *Timer::realtime_clock();
inode->m_metadata.size = device->size();
return (SharedPtr<VFS::Inode>)inode;
}