packagefs: Acquire missing reference for the root dir

We need one for the ID table and one for the volume itself.
This commit is contained in:
Ingo Weinhold 2013-04-05 00:17:22 +02:00
parent ce1d048183
commit dedc1369e1

View File

@ -660,6 +660,8 @@ Volume::Mount(const char* parameterString)
RETURN_ERROR(B_NO_MEMORY);
fRootDirectory->Init(NULL, volumeName, 0);
fNodes.Insert(fRootDirectory);
fRootDirectory->AcquireReference();
// one reference for the table
// get our mount point
error = vfs_get_mount_point(fFSVolume->id, &fMountPoint.deviceID,