packagefs: Acquire some more write locks to fix assertion failures.
This commit is contained in:
@@ -94,6 +94,7 @@ packagefs_unmount(fs_volume* fsVolume)
|
|||||||
|
|
||||||
FUNCTION("volume: %p\n", volume);
|
FUNCTION("volume: %p\n", volume);
|
||||||
|
|
||||||
|
volume->WriteLock();
|
||||||
volume->Unmount();
|
volume->Unmount();
|
||||||
delete volume;
|
delete volume;
|
||||||
|
|
||||||
|
|||||||
@@ -1775,6 +1775,8 @@ Volume::_CreateShineThroughDirectories(const char* shineThroughSetting)
|
|||||||
status_t
|
status_t
|
||||||
Volume::_PublishShineThroughDirectories()
|
Volume::_PublishShineThroughDirectories()
|
||||||
{
|
{
|
||||||
|
NodeWriteLocker rootDirectoryWriteLocker(fRootDirectory);
|
||||||
|
|
||||||
// Iterate through the root directory children and bind the shine-through
|
// Iterate through the root directory children and bind the shine-through
|
||||||
// directories to the respective mount point subdirectories.
|
// directories to the respective mount point subdirectories.
|
||||||
Node* nextNode;
|
Node* nextNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user