mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Get rid of FS::read_inode_bytes() and use Inode::read_bytes() everywhere.
This commit is contained in:
parent
951ed6692b
commit
8a71303827
Notes:
sideshowbarker
2024-07-19 16:07:37 +09:00
Author: https://github.com/awesomekling
Commit: 8a71303827
8 changed files with 11 additions and 127 deletions
|
@ -391,15 +391,14 @@ InodeIdentifier VFS::resolve_path(const String& path, InodeIdentifier base, int&
|
|||
if (part.is_empty())
|
||||
break;
|
||||
auto crumb_inode = get_inode(crumb_id);
|
||||
ASSERT(crumb_inode);
|
||||
auto metadata = crumb_inode->metadata();
|
||||
if (!metadata.isValid()) {
|
||||
if (!crumb_inode) {
|
||||
#ifdef VFS_DEBUG
|
||||
kprintf("invalid metadata\n");
|
||||
#endif
|
||||
error = -EIO;
|
||||
return { };
|
||||
}
|
||||
auto metadata = crumb_inode->metadata();
|
||||
if (!metadata.isDirectory()) {
|
||||
#ifdef VFS_DEBUG
|
||||
kprintf("parent of <%s> not directory, it's inode %u:%u / %u:%u, mode: %u, size: %u\n", part.characters(), inode.fsid(), inode.index(), metadata.inode.fsid(), metadata.inode.index(), metadata.mode, metadata.size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue