diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-26 17:47:53 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-20 16:30:22 +0100 |
commit | cf6ee1c866ccca617cb2cae98966f04612084e7f (patch) | |
tree | 221d3acea8c7c39035cbfa3133dda6f74f4b3184 /lib/private/files/filesystem.php | |
parent | 647d8ea5decad8140f9c280ae90039aa71c4eb93 (diff) | |
download | nextcloud-server-cf6ee1c866ccca617cb2cae98966f04612084e7f.tar.gz nextcloud-server-cf6ee1c866ccca617cb2cae98966f04612084e7f.zip |
cache mountpoints in the db
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r-- | lib/private/files/filesystem.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index ffe3a594ba8..ac39e385316 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -59,8 +59,10 @@ namespace OC\Files; use OC\Files\Config\MountProviderCollection; +use OC\Files\Mount\MountPoint; use OC\Files\Storage\StorageFactory; use OCP\Files\Config\IMountProvider; +use OCP\Files\Mount\IMountPoint; use OCP\Files\NotFoundException; use OCP\IUserManager; @@ -412,7 +414,8 @@ class Filesystem { $homeStorage['arguments']['legacy'] = true; } - self::mount($homeStorage['class'], $homeStorage['arguments'], $user); + $mount = new MountPoint($homeStorage['class'], '/' . $user, $homeStorage['arguments'], self::getLoader()); + self::$mounts->addMount($mount); $home = \OC\Files\Filesystem::getStorage($user); @@ -424,6 +427,8 @@ class Filesystem { if ($userObject) { $mounts = $mountConfigManager->getMountsForUser($userObject); array_walk($mounts, array(self::$mounts, 'addMount')); + $mounts[] = $mount; + $mountConfigManager->cacheMounts($userObject, $mounts); } self::listenForNewMountProviders($mountConfigManager, $userManager); |