fix: ensure nested mount points are handled in the correct order

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/44283/head
Robin Appelman 2 months ago committed by Benjamin Gaussorgues
parent d595946b0e
commit 5ab8439c00

@ -1514,6 +1514,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…
Cancel
Save