[ox/fs] Fix duplication of dir entries on update of file
This commit is contained in:
1
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
1
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
@ -240,7 +240,6 @@ Error Directory<FileStore, InodeId_t>::write(PathIterator path, InodeId_t inode,
|
||||
return OxError(1, "Could not allocate memory for copy of Directory");
|
||||
}
|
||||
|
||||
// TODO: look for old version of this entry and delete it
|
||||
oxReturnError(cpy->setSize(newSize));
|
||||
auto val = cpy->malloc(entryDataSize).value;
|
||||
if (!val.valid()) {
|
||||
|
Reference in New Issue
Block a user