mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
Kernel: Expose info about source devices of mounts in /proc/df
This commit is contained in:
parent
425c356288
commit
fde8f7f538
5 changed files with 19 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ public:
|
|||
unsigned minor() const { return m_minor; }
|
||||
|
||||
virtual String absolute_path(const FileDescription&) const override;
|
||||
virtual String absolute_path() const;
|
||||
|
||||
uid_t uid() const { return m_uid; }
|
||||
uid_t gid() const { return m_gid; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue