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

@ -7,6 +7,8 @@ class DiskBackedFS : public FS {
public:
virtual ~DiskBackedFS() override;
virtual bool is_disk_backed() const override { return true; }
DiskDevice& device() { return *m_device; }
const DiskDevice& device() const { return *m_device; }