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:
@@ -322,6 +322,8 @@ Volume::Volume(mount_id id)
|
|||||||
fRootNode = CreateNode(NULL, "", S_IFDIR | 0777);
|
fRootNode = CreateNode(NULL, "", S_IFDIR | 0777);
|
||||||
if (fRootNode == NULL)
|
if (fRootNode == NULL)
|
||||||
return;
|
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(fNodeHash, inode);
|
||||||
hash_insert(fNameHash, inode);
|
hash_insert(fNameHash, inode);
|
||||||
publish_vnode(ID(), inode->ID(), inode);
|
|
||||||
|
|
||||||
if (fRootNode != NULL)
|
if (fRootNode != NULL)
|
||||||
fRootNode->SetModificationTime(time(NULL));
|
fRootNode->SetModificationTime(time(NULL));
|
||||||
|
|||||||
Reference in New Issue
Block a user