mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:18:12 +00:00
Kernel: Add link() syscall to create hard links.
This accidentally grew into a little bit of VFS cleanup as well. Also add a simple /bin/ln implementation to exercise it.
This commit is contained in:
parent
b6115ee5b7
commit
7d288aafb2
13 changed files with 138 additions and 93 deletions
|
@ -1038,19 +1038,13 @@ ssize_t ProcFSInode::write_bytes(off_t offset, size_t size, const byte* buffer,
|
|||
|
||||
bool ProcFSInode::add_child(InodeIdentifier child_id, const String& name, byte file_type, int& error)
|
||||
{
|
||||
(void) child_id;
|
||||
(void) name;
|
||||
(void) file_type;
|
||||
(void) error;
|
||||
ASSERT_NOT_REACHED();
|
||||
error = -EPERM;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ProcFSInode::remove_child(const String& name, int& error)
|
||||
{
|
||||
(void) name;
|
||||
(void) error;
|
||||
ASSERT_NOT_REACHED();
|
||||
error = -EPERM;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue