You should not publish *every* node - at least not without releasing the ref if you don't need it.

This should allow you to actually unmount /pipe if you so desire.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21199 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-05-22 01:56:45 +00:00
parent fb5cc637bf
commit 01e7c0d868

View File

@ -322,6 +322,8 @@ Volume::Volume(mount_id id)
fRootNode = CreateNode(NULL, "", S_IFDIR | 0777);
if (fRootNode == NULL)
return;
publish_vnode(ID(), fRootNode->ID(), fRootNode);
}
@ -394,7 +396,6 @@ Volume::CreateNode(Inode *parent, const char *name, int32 type)
hash_insert(fNodeHash, inode);
hash_insert(fNameHash, inode);
publish_vnode(ID(), inode->ID(), inode);
if (fRootNode != NULL)
fRootNode->SetModificationTime(time(NULL));