aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Mount
Commit message (Collapse)AuthorAgeFilesLines
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-193-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-249-181/+29
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-022-10/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* optimize builtin storage wrappersRobin Appelman2023-11-083-2/+51
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-241-1/+10
|\ | | | | Fix root mounts not being setup in some cases
| * add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-1/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-231-0/+19
| | | | | | | | Signed-off-by: Jonas <jonas@freesources.org>
* | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-282-2/+2
|/ | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* expose MovableMount in public interfaceRobin Appelman2023-07-281-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-152-2/+2
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix testsRobin Appelman2023-02-071-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* cache numeric id in mountpointRobin Appelman2023-02-061-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* deduplicate getStorage() logic in Mount\ManagerRobin Appelman2023-02-061-9/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont delegate Mount\Manager::getByNumericId to getByStorageIdRobin Appelman2023-02-061-2/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* Fix docblock for return typeDaniel Kesselberg2022-05-271-1/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Migrate more classes of lib/private to LoggerInterfaceCôme Chilliet2022-04-262-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* don't do a full setup for `findByStorageId`Robin Appelman2022-04-041-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow getting mounts by providersRobin Appelman2022-04-041-0/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31609 from nextcloud/fix/migrate-away-from-iloggerCôme Chilliet2022-03-291-4/+3
|\ | | | | Migrate from ILogger to LoggerInterface in lib/private
| * Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-4/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | setup only relevant mounts when possibleRobin Appelman2022-03-241-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* type fixesRobin Appelman2022-03-041-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* simplify setup of circular SetupManager<->ManagerRobin Appelman2022-03-041-11/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add template annotations to CappedMemoryCacheRobin Appelman2022-03-041-6/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move logic to decide what to setup to setupmanagerRobin Appelman2022-03-041-20/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move teardown logic to SetupManagerRobin Appelman2022-03-041-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* start moving filesystem setup logic to it's own placeRobin Appelman2022-03-041-4/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more type hints for ICachedMountInfo and IMountManagerRobin Appelman2022-03-041-8/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31266 from nextcloud/root-setup-mountproviderRobin Appelman2022-03-041-0/+103
|\ | | | | move root mount setup to mountproviders
| * move root mount setup to mountprovidersRobin Appelman2022-02-241-0/+103
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Don't set up full filesystem to check for certificatesJoas Schilling2022-02-261-0/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-235-7/+36
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* only setup part of the filesystem for appdata requestsRobin Appelman2022-02-091-2/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Implement multibucket shift for ObjectStoreJohn Molakvoæ2021-11-111-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* handle case where storage can't be created in getStorageRootIdRobin Appelman2021-06-171-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-8/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* getStorage can also return nullRobin Appelman2021-03-241-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* set the mount id before calling storage wrapperRobin Appelman2020-08-311-1/+1
| | | | | | this allows the storage wrapper to use the mount id for it's own logic Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add config option to enable multibucket preview distributionMorris Jobke2020-08-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use fixed preview buckets that are postfixed with -preview-NUMBERMorris Jobke2020-08-061-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Mount the old previews in a separate folder for the multi bucket setup and ↵Morris Jobke2020-08-061-3/+48
| | | | | | check in them before using the actual locations Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Distribute preview folders in appdata in multibucket setup to multiple bucketsMorris Jobke2020-08-061-0/+102
| | | | | | | | | * 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>
* ensure home storage is initialized on first setupRobin Appelman2020-07-092-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>