mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel/SysFS: Add Symbolic link functionality to the filesystem
This will be used later on to help connecting a node at /sys/dev/block/ that represents a Storage device to a directory in /sys/devices/storage/ with details on that device in that directory.
This commit is contained in:
parent
7e88bbe550
commit
ecc29bb52e
4 changed files with 104 additions and 0 deletions
|
@ -62,6 +62,19 @@ protected:
|
|||
NonnullRefPtr<SysFSComponent> m_associated_component;
|
||||
};
|
||||
|
||||
class SysFSLinkInode : public SysFSInode {
|
||||
friend class SysFS;
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<SysFSLinkInode>> try_create(SysFS const&, SysFSComponent const&);
|
||||
virtual ~SysFSLinkInode() override;
|
||||
|
||||
protected:
|
||||
SysFSLinkInode(SysFS const&, SysFSComponent const&);
|
||||
// ^Inode
|
||||
virtual InodeMetadata metadata() const override;
|
||||
};
|
||||
|
||||
class SysFSDirectoryInode : public SysFSInode {
|
||||
friend class SysFS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue