diff --git a/lib/Operation.php b/lib/Operation.php index 9711ba71..df5e46f5 100644 --- a/lib/Operation.php +++ b/lib/Operation.php @@ -274,8 +274,16 @@ public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatch * @param array|ICacheEntry|null $cacheEntry */ private function getNode(IStorage $storage, string $path, $cacheEntry = null): ?Node { - /** @var IMountPoint|false $mountPoint */ - $mountPoint = current($this->mountManager->findByStorageId($storage->getId())); + $mountPoint = null; + $mounts = $this->mountManager->findByStorageId($storage->getId()); + foreach ($mounts as $mount) { + // we don't want to root mount; + if (strlen($mount->getMountPoint()) > 2) { + $mountPoint = $mount; + break; + } + } + if (!$mountPoint) { return null; }