mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
e6fc7b3ff7
The main place where this is a little iffy is in RAMFS where inodes have a LockWeakPtr to their parent inode. I've left that as a LockWeakPtr for now.
26 lines
542 B
C++
26 lines
542 B
C++
/*
|
|
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Kernel/FileSystem/SysFS/Inode.h>
|
|
|
|
namespace Kernel {
|
|
|
|
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;
|
|
};
|
|
|
|
}
|