Kernel: Add accessor for mount host custody
There's no reason this information needs to be secret.
This commit is contained in:
parent
103913305b
commit
2fe5ece449
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/2fe5ece449 Pull-request: https://github.com/SerenityOS/serenity/pull/19668 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/linusg
2 changed files with 13 additions and 0 deletions
|
@ -48,4 +48,14 @@ RefPtr<Inode const> Mount::host() const
|
|||
return m_host_custody->inode();
|
||||
}
|
||||
|
||||
RefPtr<Custody const> Mount::host_custody() const
|
||||
{
|
||||
return m_host_custody;
|
||||
}
|
||||
|
||||
RefPtr<Custody> Mount::host_custody()
|
||||
{
|
||||
return m_host_custody;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,6 +28,9 @@ public:
|
|||
RefPtr<Inode const> host() const;
|
||||
RefPtr<Inode> host();
|
||||
|
||||
RefPtr<Custody const> host_custody() const;
|
||||
RefPtr<Custody> host_custody();
|
||||
|
||||
Inode const& guest() const { return *m_guest; }
|
||||
Inode& guest() { return *m_guest; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue