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:
@@ -660,6 +660,8 @@ Volume::Mount(const char* parameterString)
|
|||||||
RETURN_ERROR(B_NO_MEMORY);
|
RETURN_ERROR(B_NO_MEMORY);
|
||||||
fRootDirectory->Init(NULL, volumeName, 0);
|
fRootDirectory->Init(NULL, volumeName, 0);
|
||||||
fNodes.Insert(fRootDirectory);
|
fNodes.Insert(fRootDirectory);
|
||||||
|
fRootDirectory->AcquireReference();
|
||||||
|
// one reference for the table
|
||||||
|
|
||||||
// get our mount point
|
// get our mount point
|
||||||
error = vfs_get_mount_point(fFSVolume->id, &fMountPoint.deviceID,
|
error = vfs_get_mount_point(fFSVolume->id, &fMountPoint.deviceID,
|
||||||
|
|||||||
Reference in New Issue
Block a user