diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-30 23:09:19 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-06 23:19:20 +0300 |
commit | 438ac23e2a3564fbce50e862336db56bbf0d747c (patch) | |
tree | 93953338aed57c06bfb942f95017d7f0afafd23a /lib/private/legacy/OC_Util.php | |
parent | c24f3d1336e5bf268cca2084da04ae5df4ecddb4 (diff) |
Distribute preview folders in appdata in multibucket setup to multiple buckets
* introduces a new IRootMountProvider to register mount points inside the root storage
* adds a AppdataPreviewObjectStoreStorage to handle the split between preview folders and bucket number
Ref #22033
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index ab386ab6172..fd55962447e 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -297,6 +297,17 @@ class OC_Util { self::initLocalStorageRootFS(); } + /** @var \OCP\Files\Config\IMountProviderCollection $mountProviderCollection */ + $mountProviderCollection = \OC::$server->query(\OCP\Files\Config\IMountProviderCollection::class); + /** @var \OCP\Files\Mount\IMountPoint[] $rootMountProviders */ + $rootMountProviders = $mountProviderCollection->getRootMounts(); + + /** @var \OC\Files\Mount\Manager $mountManager */ + $mountManager = \OC\Files\Filesystem::getMountManager(); + foreach ($rootMountProviders as $rootMountProvider) { + $mountManager->addMount($rootMountProvider); + } + if ($user != '' && !\OC::$server->getUserManager()->userExists($user)) { \OC::$server->getEventLogger()->end('setup_fs'); return false; |