Compare commits

..

No commits in common. "d7c563aebd9b658422e26891401aa6d6ccd2cb3b" and "8f6bd29da39bb609629b60d8a14367cd2316dac2" have entirely different histories.

3 changed files with 1 additions and 9 deletions

View File

@ -13,14 +13,7 @@ Result<SharedPtr<VFS::Inode>> MountInode::create(SharedPtr<VFS::Inode> source, S
auto parent = TRY(source->find("..")); auto parent = TRY(source->find(".."));
TRY(fs->set_mount_dir(parent)); TRY(fs->set_mount_dir(parent));
source->add_handle();
g_mounts.append(inode.ptr()); g_mounts.append(inode.ptr());
return (SharedPtr<VFS::Inode>)inode; return (SharedPtr<VFS::Inode>)inode;
} }
MountInode::~MountInode()
{
m_source->remove_handle();
}

View File

@ -137,7 +137,7 @@ class MountInode : public VFS::Inode, public LinkedListNode<MountInode>
return m_mount_root_inode->replace_entry(inode, name); return m_mount_root_inode->replace_entry(inode, name);
} }
virtual ~MountInode(); virtual ~MountInode() = default;
private: private:
SharedPtr<VFS::Inode> m_source; SharedPtr<VFS::Inode> m_source;

View File

@ -183,7 +183,6 @@ namespace VFS
auto mount = (MountInode*)inode.ptr(); auto mount = (MountInode*)inode.ptr();
TRY(parent_inode->replace_entry(mount->source(), child.chars())); TRY(parent_inode->replace_entry(mount->source(), child.chars()));
g_mounts.remove(mount);
return {}; return {};
} }