Vincent Petry
|
6935baa568
|
Merge pull request #32084 from nextcloud/root-setup-groupfolders
only need to setup root for groupfolders
|
2022-04-25 19:35:59 +02:00 |
|
Robin Appelman
|
b36dfd8f11
|
Only need to setup root for groupfolders
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-04-22 17:47:08 +02:00 |
|
Julius Härtl
|
fb59875071
|
Merge pull request #32040 from nextcloud/full-setup-only-new
only register mounts that are new from providers that are new during a full setup
|
2022-04-22 17:03:09 +02:00 |
|
Robin Appelman
|
bbf283f818
|
cache fullSetupRequired locally
no need to hit redis every time
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-04-21 16:00:28 +02:00 |
|
Robin Appelman
|
561a2071e4
|
only register mounts that are new from providers that are new during a full 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>
|
2022-04-21 12:53:50 +02:00 |
|
Robin Appelman
|
54e52e9b5e
|
always do full setup for home folder with submounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-04-08 15:05:43 +02:00 |
|
Robin Appelman
|
bdc86e9486
|
add missing return
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-04-08 15:04:35 +02:00 |
|
Robin Appelman
|
791dc509d3
|
only setup home mount when getting home folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-04-06 13:13:32 +02:00 |
|
Robin Appelman
|
99ac46d8f5
|
allow getting mounts by providers
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-04-04 14:57:56 +02:00 |
|
Robin Appelman
|
881e107543
|
Apply suggestions from code review
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>
|
2022-03-24 17:41:37 +01:00 |
|
Robin Appelman
|
b7a7425fbd
|
make mount cache duration configurable
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:36:53 +01:00 |
|
Robin Appelman
|
70c37c2717
|
fmt
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:03:55 +01:00 |
|
Robin Appelman
|
89919b0e24
|
invalidate mount cache on circles change
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:03:52 +01:00 |
|
Robin Appelman
|
15c9a3114a
|
perform full setup if a cached mount doesn't have a provider set
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:03:16 +01:00 |
|
Robin Appelman
|
d342c764f2
|
don't double setup provider when calling setupForUser after setupForPath
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:03:13 +01:00 |
|
Robin Appelman
|
6b085b6fd1
|
add logic to perform a full filesystem setup when needed
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:03:10 +01:00 |
|
Robin Appelman
|
506d29c095
|
update cached mounts when only specific providers have been setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:01:55 +01:00 |
|
Robin Appelman
|
79f6742410
|
improve lazy UserFolder
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:01:49 +01:00 |
|
Robin Appelman
|
19c64cf8b6
|
setup only relevant mounts when possible
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-24 17:01:46 +01:00 |
|
Robin Appelman
|
577b1fa856
|
setup for current user when finding mounts in the root
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-17 14:56:49 +01:00 |
|
Robin Appelman
|
917c74e214
|
type fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-04 16:30:16 +01:00 |
|
Robin Appelman
|
07a7dcb824
|
move user mountpoint setup to setupmanager
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-04 16:30:12 +01:00 |
|
Robin Appelman
|
22875bf367
|
move logic to decide what to setup to setupmanager
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-04 16:30:03 +01:00 |
|
Robin Appelman
|
1c468129af
|
adjust tests to new fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-04 16:29:59 +01:00 |
|
Robin Appelman
|
5c0fe93498
|
move teardown logic to SetupManager
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-04 16:29:50 +01:00 |
|
Robin Appelman
|
15ff65c12f
|
start moving filesystem setup logic to it's own place
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
2022-03-04 16:29:47 +01:00 |
|