mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:25:10 +00:00
Convert some FS methods to return RetainPtr<Inode>.
This commit is contained in:
parent
1e07ead119
commit
673870563d
6 changed files with 25 additions and 25 deletions
|
@ -132,7 +132,7 @@ InodeIdentifier SynthFS::root_inode() const
|
|||
return { id(), 1 };
|
||||
}
|
||||
|
||||
InodeIdentifier SynthFS::create_inode(InodeIdentifier parentInode, const String& name, Unix::mode_t mode, unsigned size, int& error)
|
||||
RetainPtr<Inode> SynthFS::create_inode(InodeIdentifier parentInode, const String& name, Unix::mode_t mode, unsigned size, int& error)
|
||||
{
|
||||
(void) parentInode;
|
||||
(void) name;
|
||||
|
@ -149,10 +149,10 @@ bool SynthFS::write_inode(InodeIdentifier, const ByteBuffer&)
|
|||
return false;
|
||||
}
|
||||
|
||||
InodeIdentifier SynthFS::create_directory(InodeIdentifier, const String&, Unix::mode_t, int& error)
|
||||
RetainPtr<Inode> SynthFS::create_directory(InodeIdentifier, const String&, Unix::mode_t, int& error)
|
||||
{
|
||||
error = -EROFS;
|
||||
return { };
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto SynthFS::generate_inode_index() -> InodeIndex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue