aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/SetupManager.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: fix availability wrapper not applyingRobin Appelman2024-11-261-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(trashbin): Port files trashbin events to IEventDispatcher/IEventListenerCarl Schwan2024-09-231-0/+5
| | | | | | | | oc_hooks is deprecated and will at some point be removed Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: store the mountpoint of storages in the mount optionsRobin Appelman2024-08-201-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-17/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Revert "don't perform an explicit setup when using the file cache"Joas Schilling2024-03-071-13/+2
|
* fix: fix user folder initRobin Appelman2024-03-061-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: ensure user home mounts is registeredRobin Appelman2024-03-061-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add a debug option to force a full filesystem setupRobin Appelman2024-02-241-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize builtin storage wrappersRobin Appelman2023-11-081-19/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* setup filesystem wrappers before we mark the root as setupRobin Appelman2023-09-121-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-38/+30
|\ | | | | move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-08-161-48/+28
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * more share permission logic to storage wrapperRobin Appelman2023-08-141-2/+14
| | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-181-2/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-3/+3
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* do onetime user setup before getting any mount from providersRobin Appelman2023-02-221-9/+7
| | | | | | this fixes a race condition where wrappers weren't properly applied if when a mount provider creates the storage instance one mountpoint creation instead of lazily Signed-off-by: Robin Appelman <robin@icewind.nl>
* more filesystem setup performance instrumentationRobin Appelman2023-02-101-6/+33
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* composer run cs:fixCôme Chilliet2023-01-201-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* delay updating setup providers untill we register the mountsRobin Appelman2022-11-171-10/+16
| | | | | | otherwise the fallback to a full setup for a missing cached mount provider will lead to a race condition Signed-off-by: Robin Appelman <robin@icewind.nl>
* get quota for user only when neededRobin Appelman2022-09-011-4/+4
| | | | | | always apply the wrapper but have the wrapper get the quota lazily only when an operation where quota is applied is performed Signed-off-by: Robin Appelman <robin@icewind.nl>
* always triger setup of builtin storage wrappersRobin Appelman2022-07-211-6/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix listening for circle events in SetupManagerJonas2022-07-121-4/+4
| | | | | | | | | | | So far, SetupManager listened for deprecated events that are no longer triggered. Instead, use the circle events that actually get triggered when adding or removing a circle or circle member. Also, these events get triggered on each instance of a globalscale setup. Fixes: #33210 Signed-off-by: Jonas <jonas@freesources.org>
* Merge pull request #32768 from nextcloud/fs-setup-onetime-earlierVincent Petry2022-06-101-0/+4
|\ | | | | perform onetime setup earlier to ensure wrappers are registered on time
| * perform onetime setup earlier to ensure wrappers are registered on timeRobin Appelman2022-06-081-0/+4
| | | | | | | | | | | | this fixes an issue with wrappers like encryption not always being applied to mountpoint that create the storage object directly (such as external storage) Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix mounts mounted at the users homeRobin Appelman2022-06-091-7/+3
|/ | | | | | this fixes external storages with '/' as mountpoint Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #32152 from ↵Vincent Petry2022-05-051-1/+1
|\ | | | | | | | | nextcloud/bugfix/32151/allow-compatibility-wrapper-local-ext-storage Allow compatibility wrapper on local external storage
| * Allow compatibility wrapper on local external storageVincent Petry2022-04-261-1/+1
| | | | | | | | | | | | | | | | The check was likely in place to prevent adding the wrapper on the root and home storage, which is not possible anyway since the encoding option cannot be set on that mount. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Merge pull request #32084 from nextcloud/root-setup-groupfoldersVincent Petry2022-04-251-1/+3
|\ \ | |/ |/| only need to setup root for groupfolders
| * Only need to setup root for groupfoldersRobin Appelman2022-04-221-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #32040 from nextcloud/full-setup-only-newJulius Härtl2022-04-221-3/+12
|\ \ | |/ |/| only register mounts that are new from providers that are new during a full setup
| * only register mounts that are new from providers that are new during a full ↵Robin Appelman2022-04-211-3/+12
| | | | | | | | | | | | | | | | 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>
* | cache fullSetupRequired locallyRobin Appelman2022-04-211-1/+7
|/ | | | | | no need to hit redis every time Signed-off-by: Robin Appelman <robin@icewind.nl>
* always do full setup for home folder with submountsRobin Appelman2022-04-081-2/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add missing returnRobin Appelman2022-04-081-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only setup home mount when getting home folderRobin Appelman2022-04-061-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow getting mounts by providersRobin Appelman2022-04-041-20/+78
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Apply suggestions from code reviewRobin Appelman2022-03-241-2/+2
| | | | | | | 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>
* make mount cache duration configurableRobin Appelman2022-03-241-5/+16
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fmtRobin Appelman2022-03-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* invalidate mount cache on circles changeRobin Appelman2022-03-241-18/+43
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perform full setup if a cached mount doesn't have a provider setRobin Appelman2022-03-241-3/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* don't double setup provider when calling `setupForUser` after `setupForPath`Robin Appelman2022-03-241-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add logic to perform a full filesystem setup when neededRobin Appelman2022-03-241-1/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update cached mounts when only specific providers have been setupRobin Appelman2022-03-241-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* improve lazy UserFolderRobin Appelman2022-03-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* setup only relevant mounts when possibleRobin Appelman2022-03-241-14/+105
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* setup for current user when finding mounts in the rootRobin Appelman2022-03-171-2/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* type fixesRobin Appelman2022-03-041-4/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>