1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

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
parent 425c356288
commit fde8f7f538
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();
}