diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-27 12:04:09 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-27 12:04:09 +0100 |
commit | aa714afa18cc1000431101401d063378cef253f1 (patch) | |
tree | c371a7a61a3afdc6ae2085c4d7e36efb8600c2a3 /Source/Kernel/VFS/DirectoryNode.class.cpp | |
parent | e25dbc23d43258ad8f822bd3c5d202b51c492184 (diff) | |
download | Melon-aa714afa18cc1000431101401d063378cef253f1.tar.gz Melon-aa714afa18cc1000431101401d063378cef253f1.zip |
Bugfixes with mountpoints
Diffstat (limited to 'Source/Kernel/VFS/DirectoryNode.class.cpp')
-rw-r--r-- | Source/Kernel/VFS/DirectoryNode.class.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Kernel/VFS/DirectoryNode.class.cpp b/Source/Kernel/VFS/DirectoryNode.class.cpp index 55365f0..18bc41a 100644 --- a/Source/Kernel/VFS/DirectoryNode.class.cpp +++ b/Source/Kernel/VFS/DirectoryNode.class.cpp @@ -30,6 +30,11 @@ u32int DirectoryNode::getNameChildSC(u32int name) { return (u32int) - 1; } +const String& DirectoryNode::getName() { + if (m_name == "/" && m_parent != NULL) return m_parent->getName(); + return m_name; +} + u64int DirectoryNode::getLength() { if (m_mounts != 0) return m_mounts->getLength(); if (!m_contentLoaded) @@ -39,7 +44,7 @@ u64int DirectoryNode::getLength() { } FSNode* DirectoryNode::getParent() { - //if (m_name == "/" and m_parent != 0) return m_parent->getParent(); + if (m_name == "/" and m_parent != 0) return m_parent->getParent(); return m_parent; } |