mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #44284 from nextcloud/backport/44279/stable27
[stable27] fix: ensure nested mount points are handled in the correct order
This commit is contained in:
commit
d2754fe993
1 changed files with 7 additions and 0 deletions
|
|
@ -1475,6 +1475,13 @@ class View {
|
|||
|
||||
//add a folder for any mountpoint in this directory and add the sizes of other mountpoints to the folders
|
||||
$mounts = Filesystem::getMountManager()->findIn($path);
|
||||
|
||||
// make sure nested mounts are sorted after their parent mounts
|
||||
// otherwise doesn't propagate the etag across storage boundaries correctly
|
||||
usort($mounts, function (IMountPoint $a, IMountPoint $b) {
|
||||
return $a->getMountPoint() <=> $b->getMountPoint();
|
||||
});
|
||||
|
||||
$dirLength = strlen($path);
|
||||
foreach ($mounts as $mount) {
|
||||
$mountPoint = $mount->getMountPoint();
|
||||
|
|
|
|||
Loading…
Reference in a new issue