aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Config
Commit message (Collapse)AuthorAgeFilesLines
* chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-171-22/+14
| | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-4/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: ensure array returned from getMountsForFileId is continiousRobin Appelman2024-08-021-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: make usermountcache compatible with shardingRobin Appelman2024-07-171-5/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-247-138/+24
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Remove incorrect default null valueCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "don't perform an explicit setup when using the file cache"Joas Schilling2024-03-071-1/+1
|
* Merge pull request #32163 from nextcloud/file-cache-gc-no-full-setupJohn Molakvoæ2024-03-071-1/+1
|\ | | | | don't perform an explicit setup when using the file cache
| * fix: fix user folder initRobin Appelman2024-03-061-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: clearify logic around getMountsForFileId filteringRobin Appelman2024-03-061-2/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Revert "Filter mounts for file id before trying to get user information"Robin Appelman2024-03-061-16/+4
| | | | | | | | | | | | This reverts commit 1e2cf820c89b774d0a8d6f85bfd8d2fd1b4ab2d6. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | perf: use lazy user in UserMountCache for getting user for cached mountRobin Appelman2024-03-061-6/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-6/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only get the path for the users cached mount info when we use itRobin Appelman2024-02-092-15/+113
| | | | | | most of the time we shouldn't need it so we can save joining on the filecache Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>