Kernel: Expose info about source devices of mounts in /proc/df

This commit is contained in:
Sergey Bugaev 2019-08-17 12:17:36 +03:00 committed by Andreas Kling
commit fde8f7f538
Notes: sideshowbarker 2024-07-19 12:39:19 +09:00
5 changed files with 19 additions and 2 deletions

View file

@ -14,7 +14,12 @@ Device::~Device()
VFS::the().unregister_device({}, *this);
}
String Device::absolute_path(const FileDescription&) const
String Device::absolute_path() const
{
return String::format("device:%u,%u (%s)", m_major, m_minor, class_name());
}
String Device::absolute_path(const FileDescription&) const
{
return absolute_path();
}