Skip to content

Conversation

@SystemKeeper
Copy link
Contributor

@SystemKeeper SystemKeeper commented Aug 20, 2025

When setting up the file system, we check for storageRootId of -1:

https://github.com/nextcloud/server/blob/4d65b91b0672fd2ef160a59ef91947eaccfb13a7/lib/private/Files/Config/UserMountCache.php#L66-L69

If there's no rootId set on the MountPoint, we try to create the storage and retrieve the rootId:

https://github.com/nextcloud/server/blob/4d65b91b0672fd2ef160a59ef91947eaccfb13a7/lib/private/Files/Mount/MountPoint.php#L269-L280

In worst case, if the information is not cached yet, we do a DB query to get the rootId

Signed-off-by: Marcel Müller <[email protected]>
@SystemKeeper SystemKeeper marked this pull request as ready for review August 21, 2025 18:22
@SystemKeeper SystemKeeper merged commit ecdd22d into master Aug 21, 2025
51 checks passed
@SystemKeeper SystemKeeper deleted the fix/noid/reuse-rootid branch August 21, 2025 18:22
@SystemKeeper
Copy link
Contributor Author

/backport to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants