summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Config
Commit message (Collapse)AuthorAgeFilesLines
* optimize UserMountCache::registerStorageRobin Appelman2023-11-163-57/+61
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-241-0/+5
|\ | | | | Fix root mounts not being setup in some cases
| * add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-231-1/+1
| | | | | | | | Signed-off-by: Jonas <jonas@freesources.org>
* | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-1/+1
|/ | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* allow storing multiple mounts for the same rootid in the mount cacheRobin Appelman2023-04-281-17/+19
| | | | | | | | | | | | currently `[$userId, $rootId]` is used as the unique key for storing mounts in the mount cache, however there are cases where the same rootid is mounted in multiple places for a user which currently leads to not all of those mounts being added to the cache. Previously this didn't matter as the mount cache was only used to list users with access to a specific file, so a user having access to the file multiple times didn' change anything. With 24 the mount cache is used for more cases and multiple mounts for the same id becomes relevant. While I think there isn't a real negative effect atm besides missing the optimized path we should ensure that the mounts are properly listed Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add transaction around mass mounts operationsJoas Schilling2023-03-071-12/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* more filesystem setup performance instrumentationRobin Appelman2023-02-102-14/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix updating cached mounts that didn't have their mount provider set previouslyRobin Appelman2022-08-161-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-121-20/+7
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32034 from ↵Carl Schwan2022-04-271-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/satisfy-binary-operation-order Make the binary operation order explicit
| * Make the binary operation order explicitJoas Schilling2022-04-211-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | only register mounts that are new from providers that are new during a full ↵Robin Appelman2022-04-211-0/+4
|/ | | | | | | | setup this fixes cases where during the (partial) setup of a shared mount a full setup is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow getting mounts by providersRobin Appelman2022-04-041-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31609 from nextcloud/fix/migrate-away-from-iloggerCôme Chilliet2022-03-291-10/+3
|\ | | | | Migrate from ILogger to LoggerInterface in lib/private
| * Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-10/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Make phpcs happy in MountProviderCollectionVincent Petry2022-03-241-2/+2
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Apply suggestions from code reviewRobin Appelman2022-03-241-7/+8
| | | | | | | | | | | | | | Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add comment for getMountForPath loopRobin Appelman2022-03-241-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix method nameRobin Appelman2022-03-241-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | don't double setup provider when calling `setupForUser` after `setupForPath`Robin Appelman2022-03-241-3/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | update cached mounts when only specific providers have been setupRobin Appelman2022-03-241-1/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow getting mounts by providerRobin Appelman2022-03-241-6/+16
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow getting cached mounts by path from the mount cacheRobin Appelman2022-03-241-0/+33
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move user mountpoint setup to setupmanagerRobin Appelman2022-03-041-10/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move teardown logic to SetupManagerRobin Appelman2022-03-041-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more type hints for ICachedMountInfo and IMountManagerRobin Appelman2022-03-043-49/+25
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-234-16/+60
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #26494 from rigrig/fix-php8-deprecationsMorris Jobke2021-06-071-1/+1
|\ | | | | Fix some php 8 warnings
| * Fix functions taking optional parameters before required onesRichard de Boer2021-05-291-1/+1
| | | | | | | | | | | | | | PHP 8 shows deprecation warnings about this, see #25806 Removes the "default" values, as they actually are required parameters anyway. Signed-off-by: Richard de Boer <git@tubul.net>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-7/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Filter mounts for file id before trying to get user informationJulius Härtl2021-04-301-4/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-4/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Transfer shares of the transferred root nodeJulius Härtl2020-08-311-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Properly add new methods to interface and document in PHPDoc for getRootMounts()Morris Jobke2020-08-171-0/+6
| | | | | | Introduced in #22063 and was just forgotten. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Distribute preview folders in appdata in multibucket setup to multiple bucketsMorris Jobke2020-08-061-0/+19
| | | | | | | | | * 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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-056-6/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-223-3/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* more efficient way to detect added and removed mountsRobin Appelman2018-08-161-9/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove double loop for detecting changed mountsRobin Appelman2018-08-161-9/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>