Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix(SetupManager): Include home and root providers when registering mountsfix/setupmanager/home-root-providers-register-mounts | provokateurin | 2025-05-20 | 1 | -55/+61 |
| | | | | Signed-off-by: provokateurin <kate@provokateurin.de> | ||||
* | feat(UserMountCache): Emit events for added, removed and updated mountsfeat/mountmanager/emit-events | provokateurin | 2025-05-19 | 1 | -7/+24 |
| | | | | Signed-off-by: provokateurin <kate@provokateurin.de> | ||||
* | feat: add debug logging for adding/removing items from the user mounts cacheusermountcache-logging | Robin Appelman | 2025-04-03 | 1 | -0/+3 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | chore(db): Apply query prepared statementsdbQueriesExecStmt2 | Git'Fellow | 2024-10-17 | 1 | -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.1 | provokateurin | 2024-09-19 | 4 | -4/+4 |
| | | | | Signed-off-by: provokateurin <kate@provokateurin.de> | ||||
* | style: update codestyle for coding-standard 1.2.3 | Daniel Kesselberg | 2024-08-25 | 2 | -4/+4 |
| | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> | ||||
* | fix: ensure array returned from getMountsForFileId is continious | Robin Appelman | 2024-08-02 | 1 | -2/+2 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | fix: make usermountcache compatible with sharding | Robin Appelman | 2024-07-17 | 1 | -5/+5 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | chore: Add SPDX header | Andy Scherzinger | 2024-05-24 | 7 | -138/+24 |
| | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de> | ||||
* | fix: Remove incorrect default null value | Côme Chilliet | 2024-04-02 | 1 | -1/+1 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | fix: Apply new coding standard to all files | Côme Chilliet | 2024-04-02 | 4 | -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 Schilling | 2024-03-07 | 1 | -1/+1 |
| | |||||
* | Merge pull request #32163 from nextcloud/file-cache-gc-no-full-setup | John Molakvoæ | 2024-03-07 | 1 | -1/+1 |
|\ | | | | | don't perform an explicit setup when using the file cache | ||||
| * | fix: fix user folder init | Robin Appelman | 2024-03-06 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | fix: clearify logic around getMountsForFileId filtering | Robin Appelman | 2024-03-06 | 1 | -2/+9 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | Revert "Filter mounts for file id before trying to get user information" | Robin Appelman | 2024-03-06 | 1 | -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 mount | Robin Appelman | 2024-03-06 | 1 | -6/+4 |
|/ | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | perf: switch places that always use the first getById result to getFirstNodeById | Robin Appelman | 2024-03-04 | 1 | -6/+1 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | only get the path for the users cached mount info when we use it | Robin Appelman | 2024-02-09 | 2 | -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::registerStorage | Robin Appelman | 2023-11-16 | 3 | -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-checking | Robin Appelman | 2023-10-24 | 1 | -0/+5 |
|\ | | | | | Fix root mounts not being setup in some cases | ||||
| * | add more checks to ensure mounts aren't empty | Robin Appelman | 2023-09-12 | 1 | -0/+5 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | enh(IMountManager): Add method to get MountPoint from CachedMountInfo | Jonas | 2023-10-23 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Jonas <jonas@freesources.org> | ||||
* | | Convert isset ternary to null coalescing operator | Hamid Dehnavi | 2023-09-28 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com> | ||||
* | Refactors "strpos" calls in lib/private to improve code readability. | Faraz Samapoor | 2023-05-15 | 1 | -1/+1 |
| | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com> | ||||
* | allow storing multiple mounts for the same rootid in the mount cache | Robin Appelman | 2023-04-28 | 1 | -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 operations | Joas Schilling | 2023-03-07 | 1 | -12/+19 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | more filesystem setup performance instrumentation | Robin Appelman | 2023-02-10 | 2 | -14/+36 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | fix updating cached mounts that didn't have their mount provider set previously | Robin Appelman | 2022-08-16 | 1 | -1/+6 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Fix typos in lib/private subdirectory | luz paz | 2022-07-27 | 1 | -1/+1 |
| | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com> | ||||
* | Move CappedMemoryCache to OCP | Carl Schwan | 2022-07-14 | 1 | -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 CappedMemoryCache | Carl Schwan | 2022-05-12 | 1 | -20/+7 |
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> | ||||
* | Merge pull request #32034 from ↵ | Carl Schwan | 2022-04-27 | 1 | -1/+1 |
|\ | | | | | | | | | nextcloud/bugfix/noid/satisfy-binary-operation-order Make the binary operation order explicit | ||||
| * | Make the binary operation order explicit | Joas Schilling | 2022-04-21 | 1 | -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 Appelman | 2022-04-21 | 1 | -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 providers | Robin Appelman | 2022-04-04 | 1 | -2/+2 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #31609 from nextcloud/fix/migrate-away-from-ilogger | Côme Chilliet | 2022-03-29 | 1 | -10/+3 |
|\ | | | | | Migrate from ILogger to LoggerInterface in lib/private | ||||
| * | Migrate from ILogger to LoggerInterface in lib/private | Côme Chilliet | 2022-03-24 | 1 | -10/+3 |
| | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | | Make phpcs happy in MountProviderCollection | Vincent Petry | 2022-03-24 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> | ||||
* | | Apply suggestions from code review | Robin Appelman | 2022-03-24 | 1 | -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 loop | Robin Appelman | 2022-03-24 | 1 | -0/+2 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | fix method name | Robin Appelman | 2022-03-24 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | don't double setup provider when calling `setupForUser` after `setupForPath` | Robin Appelman | 2022-03-24 | 1 | -3/+8 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | update cached mounts when only specific providers have been setup | Robin Appelman | 2022-03-24 | 1 | -1/+6 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | allow getting mounts by provider | Robin Appelman | 2022-03-24 | 1 | -6/+16 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | allow getting cached mounts by path from the mount cache | Robin Appelman | 2022-03-24 | 1 | -0/+33 |
|/ | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | move user mountpoint setup to setupmanager | Robin Appelman | 2022-03-04 | 1 | -10/+0 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | move teardown logic to SetupManager | Robin Appelman | 2022-03-04 | 1 | -0/+6 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | more type hints for ICachedMountInfo and IMountManager | Robin Appelman | 2022-03-04 | 3 | -49/+25 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | store mountprovider for each mount in the mounts table | Robin Appelman | 2022-02-23 | 4 | -16/+60 |
| | | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl> |